diff --git a/charts/renovate/README.md b/charts/renovate/README.md index 90e23ecb5..1dda6c6d9 100644 --- a/charts/renovate/README.md +++ b/charts/renovate/README.md @@ -39,6 +39,7 @@ The following table lists the configurable parameters of the chart and the defau | Key | Type | Default | Description | |-----|------|---------|-------------| +| apiVersionOverrides.cronjob | string | `""` | String to override apiVersion of cronjob rendered by this helm chart | | cronjob.annotations | object | `{}` | | | cronjob.concurrencyPolicy | string | `""` | | | cronjob.failedJobsHistoryLimit | string | `""` | | @@ -47,11 +48,11 @@ The following table lists the configurable parameters of the chart and the defau | cronjob.labels | object | `{}` | | | cronjob.schedule | string | `"0 1 * * *"` | | | cronjob.successfulJobsHistoryLimit | string | `""` | | -| dind.enabled | bool | `false` | | +| dind.enabled | bool | `false` | Enable dind sidecar usage? | | dind.image.pullPolicy | string | `"IfNotPresent"` | | | dind.image.repository | string | `"docker.io/library/docker"` | | | dind.image.tag | string | `"20.10.7-dind"` | | -| dind.slim.enabled | bool | `true` | | +| dind.slim.enabled | bool | `true` | Do not add `-slim` suffix to image tag when using dind | | env | object | `{}` | | | envFrom | list | `[]` | | | existingSecret | string | `""` | | @@ -61,12 +62,12 @@ The following table lists the configurable parameters of the chart and the defau | imagePullSecrets | object | `{}` | | | pod.annotations | object | `{}` | | | pod.labels | object | `{}` | | -| redis.cluster.enabled | bool | `false` | | -| redis.enabled | bool | `false` | | +| redis.cluster.enabled | bool | `false` | Do not use clustering, not supported by renovate | +| redis.enabled | bool | `false` | Enable the Redis subchart? | | redis.nameOverride | string | `"redis"` | | | redis.usePassword | bool | `false` | | -| renovate.config | string | `""` | | -| renovate.existingConfigFile | string | `""` | | +| renovate.config | string | `""` | Inline global renovate config.json | +| renovate.existingConfigFile | string | `""` | Custom exiting global renovate config | | resources | object | `{}` | | | secrets | object | `{}` | | | serviceAccount.annotations | object | `{}` | | diff --git a/charts/renovate/templates/cronjob.yaml b/charts/renovate/templates/cronjob.yaml index 12c40863a..4c5f97952 100644 --- a/charts/renovate/templates/cronjob.yaml +++ b/charts/renovate/templates/cronjob.yaml @@ -1,10 +1,12 @@ - {{- if .Capabilities.APIVersions.Has "batch/v1/CronJob" }} +{{- if .Values.apiVersionOverrides.cronjob -}} +apiVersion: {{ .Values.apiVersionOverrides.cronjob }} +{{- else if .Capabilities.APIVersions.Has "batch/v1/CronJob" }} apiVersion: batch/v1 - {{- else if .Capabilities.APIVersions.Has "batch/v1beta1/CronJob" }} +{{- else if .Capabilities.APIVersions.Has "batch/v1beta1/CronJob" }} apiVersion: batch/v1beta1 - {{- else }} - {{- fail "\n\n ERROR: You must have at least batch/v1beta1 to use CronJob" }} - {{- end }} +{{- else }} + {{- fail "\n\n ERROR: You must have at least batch/v1beta1 to use CronJob" }} +{{- end }} kind: CronJob metadata: name: {{ include "renovate.fullname" . }} diff --git a/charts/renovate/values.yaml b/charts/renovate/values.yaml index bf492777d..e35e84f85 100644 --- a/charts/renovate/values.yaml +++ b/charts/renovate/values.yaml @@ -21,7 +21,9 @@ image: imagePullSecrets: {} renovate: + # -- Custom exiting global renovate config existingConfigFile: '' + # -- Inline global renovate config.json config: '' # See https://docs.renovatebot.com/self-hosted-configuration # config: | @@ -50,9 +52,10 @@ secrets: {} existingSecret: '' dind: - # Enable dind sidecar? + # -- Enable dind sidecar usage? enabled: false slim: + # -- Do not add `-slim` suffix to image tag when using dind enabled: true image: repository: docker.io/library/docker @@ -89,7 +92,7 @@ redis: # Configuration for a Redis subchart. Additional documenation at # https://github.com/bitnami/charts/tree/master/bitnami/redis - # Enable the Redis subchart? + # -- Enable the Redis subchart? enabled: false # Must be defined since redis.fullname references .Chart.Name which is different in the subchart. @@ -98,7 +101,15 @@ redis: # Disable clustering by default cluster: + # -- Do not use clustering, not supported by renovate enabled: false # Don't require a password by default usePassword: false + +# Override APIVersions +# If you want to template helm charts but cannot access k8s API server +# you can set api versions here +apiVersionOverrides: + # -- String to override apiVersion of cronjob rendered by this helm chart + cronjob: ''