fix: use config.json as default and bump to v31
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Markus Pesch 2021-12-21 22:59:20 +01:00
parent a13fe1d506
commit a3d1eb7cd9
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982
5 changed files with 14 additions and 7 deletions

View File

@ -3,7 +3,7 @@ name: renovate
description: Helm chart for renovate bot description: Helm chart for renovate bot
type: application type: application
version: 0.2.0 version: 0.2.0
appVersion: "29.14.0-slim" appVersion: "31.11.2-slim"
icon: https://avatars3.githubusercontent.com/u/38656520?s=400&v=4 icon: https://avatars3.githubusercontent.com/u/38656520?s=400&v=4
keywords: keywords:

View File

@ -10,6 +10,11 @@ data:
{{- $_ := set .Values "env" dict -}} {{- $_ := set .Values "env" dict -}}
{{- end -}} {{- end -}}
{{- if not (hasKey .Values.renovate.env "RENOVATE_CONFIG_FILE") -}}
{{- $configFile := printf "/usr/src/app/config.%s" .Values.renovate.appConfig.extension -}}
{{- $_ := set .Values.renovate.env "RENOVATE_CONFIG_FILE" $configFile -}}
{{- end -}}
{{/* SETUP CONFIG */}} {{/* SETUP CONFIG */}}
{{ range $key, $value := .Values.renovate.env }} {{ range $key, $value := .Values.renovate.env }}
{{ upper $key}}: {{ quote $value }} {{ upper $key}}: {{ quote $value }}

View File

@ -52,10 +52,10 @@ spec:
securityContext: securityContext:
{{- toYaml .Values.securityContext | nindent 16 }} {{- toYaml .Values.securityContext | nindent 16 }}
volumeMounts: volumeMounts:
{{- if .Values.renovate.appConfig }} {{- if .Values.renovate.appConfig.content }}
- name: app-config - name: app-config
mountPath: /usr/src/app/config.json mountPath: {{ printf "/usr/src/app/config.%s" .Values.renovate.appConfig.extension }}
subPath: config.json subPath: config
{{- end }} {{- end }}
{{- if .Values.renovate.sshConfig.enabled }} {{- if .Values.renovate.sshConfig.enabled }}
- name: ssh-config - name: ssh-config

View File

@ -19,7 +19,7 @@ stringData:
{{ end }} {{ end }}
{{- end }} {{- end }}
{{- if .Values.renovate.appConfig }} {{- if .Values.renovate.appConfig.content }}
--- ---
apiVersion: v1 apiVersion: v1
kind: Secret kind: Secret
@ -29,7 +29,7 @@ metadata:
{{- include "renovate.labels" . | nindent 4 }} {{- include "renovate.labels" . | nindent 4 }}
type: Opaque type: Opaque
stringData: stringData:
config.json: {{ .Values.renovate.appConfig | quote }} config: {{ .Values.renovate.appConfig.content | quote }}
{{- end }} {{- end }}
{{- if .Values.renovate.sshConfig.enabled }} {{- if .Values.renovate.sshConfig.enabled }}

View File

@ -74,7 +74,9 @@ renovate:
# GITHUB_COM_TOKEN # GITHUB_COM_TOKEN
# https://github.com/renovatebot/renovate/blob/main/docs/usage/getting-started/running.md#githubcom-token-for-release-notes # https://github.com/renovatebot/renovate/blob/main/docs/usage/getting-started/running.md#githubcom-token-for-release-notes
# GITHUB_COM_TOKEN: "" # GITHUB_COM_TOKEN: ""
appConfig: '' appConfig:
extension: json
content: '{}'
sshConfig: sshConfig:
enabled: false enabled: false
# existingSecret: # existingSecret: