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

Fix Agent Helm chart template env block #312

Merged
merged 2 commits into from
Nov 15, 2021

Conversation

rwilliams-exs
Copy link
Contributor

Summary

The current format of the Helm templating uses indentation one step too deep, resulting in formatting errors when used. This change corrects that indentation, and changes the default value in the values.yaml file to avoid incorrect warning messages.

Importance

Allows for actually providing custom environment variables to the agent

More information

values.yaml file contents:

agent:
  enabled: true
  env:
    - name: foo
      value: bar

Pre-change

helm template helm/prefect-server --values values.yaml excerpt:

...
          - name: PREFECT__CLOUD__AGENT__AGENT_ADDRESS
            value: http://0.0.0.0:8080
            - name: foo
              value: bar
...

Accompanying error message:

Error: YAML parse error on prefect-server/templates/agent/deployment.yaml: error converting YAML to JSON: yaml: line 61: did not find expected key

Post change

helm template helm/prefect-server --values values.yaml excerpt:

...
          - name: PREFECT__CLOUD__AGENT__AGENT_ADDRESS
            value: http://0.0.0.0:8080
          - name: foo
            value: bar
...

Error message resolved

Copy link
Contributor

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @rwilliams-exs! Thanks for contributing. This looks great. Can you add a changelog entry per https://github.com/PrefectHQ/server/tree/master/changes?

@rwilliams-exs
Copy link
Contributor Author

Hi @madkinsz, I have added the changelog entry as requested - please let me know if there's anything else required and I'll be happy to oblige

Copy link
Contributor

@zanieb zanieb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@zanieb zanieb merged commit 44000da into PrefectHQ:master Nov 15, 2021
@jamedge
Copy link

jamedge commented Nov 16, 2021

Hi, when can we expect a helm chart release with this fix? Thanks!

@zanieb zanieb mentioned this pull request Nov 30, 2021
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

Successfully merging this pull request may close these issues.

3 participants