disable post build substitution in HelmRelease #4951
Unanswered
f-wi-plano
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am getting a "post build failed for 'jenkins-ci': envsubst error: variable substitution failed: missing closing brace" error from flux. I think the problem is that the two variables ${keycloak-clientid} and ${keycloak-clientsecret} do not exist at the time flux applies the HelmRelease.
In this case, the variables come from kubernetes Secrets.
What can I do?
`---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: jenkins-ci
namespace: devops
spec:
interval: 30m
chart:
spec:
chart: jenkins
version: 5.5.8
sourceRef:
kind: HelmRepository
name: jenkins
namespace: flux-system
interval: 30m
values:
controller:
containerEnv:
- name: SECRETS
value: /run/secrets/additional
admin:
# -- The key in the existing admin secret containing the username
userKey: jenkins-admin-user
# -- The key in the existing admin secret containing the password
passwordKey: jenkins-admin-password
`
Beta Was this translation helpful? Give feedback.
All reactions