From bcedd51ee753007de469949a64c56ca6280bde7b Mon Sep 17 00:00:00 2001 From: Wayne Starr Date: Wed, 18 Dec 2024 07:47:59 -0700 Subject: [PATCH] chore!: switch config to yaml for easier overriding (#35) * chore!: switch config to yaml for easier overriding * fix docs --- chart/templates/renovate-config-secret.yaml | 2 +- chart/values.yaml | 7 +++---- docs/configuration.md | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/chart/templates/renovate-config-secret.yaml b/chart/templates/renovate-config-secret.yaml index d180157..7cd5bf4 100644 --- a/chart/templates/renovate-config-secret.yaml +++ b/chart/templates/renovate-config-secret.yaml @@ -9,4 +9,4 @@ metadata: type: Opaque stringData: config.json: |- - {{- .Values.renovate.config | nindent 4 }} + {{- .Values.renovate.config | toJson | nindent 4 }} diff --git a/chart/values.yaml b/chart/values.yaml index 4eca655..4ee1614 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -41,9 +41,8 @@ renovate: # that aren't directly exposed by the uds-renovate-config chart. (see: https://docs.renovatebot.com/self-hosted-configuration/) extraEnv: {} - config: | - { - "enabled": true - } + config: + enabled: true + additionalNetworkAllow: [] diff --git a/docs/configuration.md b/docs/configuration.md index d90f6db..1a2acc9 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -17,7 +17,7 @@ By default the schedule is every 15 minutes (`"*/15 * * * *"`). - `renovate.autodiscover` - Autodiscover repositories. Defaults to `true` which enables Renovate to run on all repositories that the bot account can access. See https://docs.renovatebot.com/self-hosted-configuration/#autodiscover - `renovate.onboarding` - Require a configuration PR to onboard new repositories to Renovate. Defaults to `true`. See https://docs.renovatebot.com/self-hosted-configuration/#onboarding - `renovate.extraEnv` - A map of key value pairs to pass extra environment variables to Renovate for custom configuration options. Any value listed in the [Renovate Self-Hosted configuration options](https://docs.renovatebot.com/self-hosted-configuration/) can be specified here using the `env` variable name from the docs. -- `renovate.config` - Renovate config.json file. The contents of this file will be combined with any settings or environment variables specified above. If `renovate.printconfig` is `true` the combined effective config will appear in the pod logs for each execution of Renovate. +- `renovate.config` - Renovate `config.json` file represented in YAML (YAML keys are the same as those in the `config.json` and are converted toJson iby the template). The contents of this file will be combined with any settings or environment variables specified above. If `renovate.printconfig` is `true` the combined effective config will appear in the pod logs for each execution of Renovate. ## Redis