Skip to content

Self-Hosted-Renovate: Env. Secrets usage in config.js #237

Answered by marsdalesa
dschunack asked this question in Q&A
Discussion options

You must be logged in to vote

@dschunack I encountered the same difficulty as you and while I didn't make it work within using an inline renovate.config I did manage to make this work by exploiting extraConfigmaps, extraVolumes, extraVolumeMounts and setting existingConfigFile. This way, I was able to make a config.js that can use the renovate docs examples. The k8s secret renovate-env contains the secret values e.g.:

apiVersion: v1
kind: Secret
metadata:
  name: renovate-env
type: Opaque
stringData:
  GITHUB_COM_TOKEN: "xxxxxx"
  RENOVATE_AUTODISCOVER: 'false'
  RENOVATE_GIT_AUTHOR: 'Renovate Bot <xxxx@xxxxx>'
  RENOVATE_TOKEN: "xxxxxx"
  ARTIFACTORY_USER: "xxxxxx"
  ARTIFACTORY_TOKEN: "xxxxx"

The helm values I set …

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by viceice
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@viceice
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #198 on June 23, 2022 10:14.