Skip to content
New issue

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

Adding a deploymentLabel map causes an error #1528

Open
EvilSmiff opened this issue Feb 13, 2025 · 0 comments
Open

Adding a deploymentLabel map causes an error #1528

EvilSmiff opened this issue Feb 13, 2025 · 0 comments

Comments

@EvilSmiff
Copy link

EvilSmiff commented Feb 13, 2025

When deploying tofu-controller using the chart v0.16.0-rc.5 using a HelmRelease manifest with the following specified in the values: key

values: deploymentLabels: app.kubernetes.io/part-of: flux app.kubernetes.io/version: v2.4.0
I'm getting the following error:

Running 'install' action with timeout of 5m0sHelm install failed for release flux-system/tofu-controller with chart tofu-controller@0.16.0-rc.5: YAML parse error on tofu-controller/templates/deployment.yaml: error converting YAML to JSON: yaml: line 13: mapping values are not allowed in this context

I'm not certain as I've little experience on helm templating but this appears to be due to a minor error in the helm template code in https://github.com/flux-iac/tofu-controller/blob/main/charts/tofu-controller/templates/deployment.yaml on line 7.

Using the same values block but setting the deploymentLabels to podLabels doesn't cause the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant