Skip to content

fix: fix helm prometheus block causing failures #5458

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

Merged
merged 1 commit into from
Dec 18, 2022

Conversation

deansheather
Copy link
Member

If helm chart users had valueFrom environment variables (like what we recommend for the DB URL) then it would cause the prometheus port block to hard fail, even if the valueFrom wasn't on CODER_PROMETHEUS_ENABLE.

This is because go templates would evaluate the parameters to the and function early since they are implemented as functions and not optimized programming conditionals.

cc @denbeigh2000

@deansheather deansheather merged commit 88d3496 into main Dec 18, 2022
@deansheather deansheather deleted the dean/fix-helm-prom-var branch December 18, 2022 18:48
@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants