8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manjaro with 6.6.19 kernel
2.25.1
v1.30.4+k3s1
v1.30.3
When using empty or null variables kluctl incorretly substitutes them in templates
.kluctl.yaml
discriminator: app-{{ target.name }} targets: - name: local
deployment.yaml
deployments: - path: app vars: - file: vars.yaml
vars.yaml
testVar1: testVar2: "" testVar3: null
app/namespace.yaml
apiVersion: v1 kind: Namespace metadata: labels: label1: {{ testVar1 }} label2: {{ testVar2 }} label3: {{ testVar3 }} name: app
If we render this project with kluctl render then rendered namespace will have following yaml:
kluctl render
apiVersion: v1 kind: Namespace metadata: labels: label1: None label2: label3: None name: app
So every variable is rendered wrong. testVar1 and testVar3 from null value became "None" string and testVar2 from "" empty string became null value,
testVar1
testVar3
null
"None"
testVar2
""
No response
The text was updated successfully, but these errors were encountered:
I was set to use kluctl until seeing this. I wonder if it's reproducible in other projects using jinja2 like ansible...
Sorry, something went wrong.
No branches or pull requests
Operating system
Manjaro with 6.6.19 kernel
Kluctl Version
2.25.1
Kubernetes Version
v1.30.4+k3s1
kubectl Version
v1.30.3
Bug description
When using empty or null variables kluctl incorretly substitutes them in templates
Steps to reproduce
.kluctl.yaml
deployment.yaml
vars.yaml
app/namespace.yaml
If we render this project with
kluctl render
then rendered namespace will have following yaml:So every variable is rendered wrong.
testVar1
andtestVar3
fromnull
value became"None"
string andtestVar2
from""
empty string becamenull
value,Relevant log output
No response
The text was updated successfully, but these errors were encountered: