How to force string value with variable substitution? #1795
-
I'm using variable substitution to replace values in the manifests applied by Kustomization (using If I do How do I get |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
This is super awkward, but I believe this is how it's done. There was a thread on the CNCF slack #flux about this, credit to Ben A for finding the workaround. https://cloud-native.slack.com/archives/CLAJ40HV3/p1623953195127500?thread_ts=1623949464.122200&cid=CLAJ40HV3 |
Beta Was this translation helpful? Give feedback.
-
This workaround no longer works. See here for our solution: #1839 (comment) |
Beta Was this translation helpful? Give feedback.
-
Is there any workaround when the variable substitution is not done in a helm template, but e.g. for a standard cert-manager certificate resource? apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: "${CERTIFICATE_NAME}"
namespace: edge
spec:
secretName: "${CERTIFICATE_NAME}"
issuerRef:
name: my-cert
kind: ClusterIssuer
dnsNames:
- "${CERTIFICATE_DOMAIN}" |
Beta Was this translation helpful? Give feedback.
-
To force the conversion of variables to string see the docs here: https://fluxcd.io/flux/components/kustomize/kustomizations/#post-build-substitution-of-numbers-and-booleans |
Beta Was this translation helpful? Give feedback.
To force the conversion of variables to string see the docs here: https://fluxcd.io/flux/components/kustomize/kustomizations/#post-build-substitution-of-numbers-and-booleans