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

Add quotes to V1 vars #14

Merged
merged 1 commit into from
Jul 17, 2022
Merged

Add quotes to V1 vars #14

merged 1 commit into from
Jul 17, 2022

Conversation

grrywlsn
Copy link

@grrywlsn grrywlsn commented Jul 15, 2022

Helm (via Flux's HelmRelease CRD) wasn't able to parse the boolean values for the V1 environment variables. I've swapped to putting them in quotes, which parses fine and allows the helm chart to install.

A sample of the error:

Helm install failed: Deployment in version "v1" cannot be handled as a Deployment: v1.Deployment.Spec: v1.DeploymentSpec.Template: v1.PodTemplateSpec.Spec: v1.PodSpec.Containers: []v1.Container: v1.Container.Env: []v1.EnvVar: v1.EnvVar.Value: ReadString: expects " or n, but found t, error found in #10 byte of ...|,"value":true},{"nam|..., bigger context ...|"env":[{"name":"USE_V1_UPTIME_ENDPOINTS","value":true},{"name":"USERNAME","valueFrom":{"secretKeyRef|...

@chelnak
Copy link
Owner

chelnak commented Jul 17, 2022

@grrywlsn Thank you!

@chelnak
Copy link
Owner

chelnak commented Jul 17, 2022

The CI failure looks unrelated to this change.. looks like I need to fix the image push.

Happy to merge!

@chelnak chelnak merged commit 2501471 into chelnak:main Jul 17, 2022
@chelnak chelnak linked an issue Jul 17, 2022 that may be closed by this pull request
@chelnak chelnak added the bug Something isn't working label Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

V1 endpoints don't template in helm correctly
2 participants