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

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
type: application
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
keywords:

View File

@ -10,6 +10,11 @@ data:
{{- $_ := set .Values "env" dict -}}
{{- 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 */}}
{{ range $key, $value := .Values.renovate.env }}
{{ upper $key}}: {{ quote $value }}

View File

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

View File

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

View File

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