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 YAML parse error when specifying two or more resource labels #579

Conversation

mark-hofmeijer
Copy link
Contributor

What was changed

This PR fixes a YAML parse error on temporal/templates/server-deployment.yaml (error converting YAML to JSON: yaml: line 31: mapping values are not allowed in this context).

Why?

This error is introduced in PR #539 and occurs when two or more resource labels (e.g. podLabels) are specified. It works with 1 resource label, because the parse error is caused by missing newlines after each label in the $resourceLabels range. This starts to become a problem with at least 2 items.

Checklist

  1. How was this tested:
    helm install -f values.yaml --set additionalLabels.additionalLabel1="additionalTest1" --set server.frontend.podLabels.label1="test1" --set server.frontend.podLabels.label2="test2" debug . --dry-run --debug

  2. Any docs updates needed?
    No.

@mark-hofmeijer mark-hofmeijer requested a review from a team as a code owner October 2, 2024 21:03
@robholland robholland merged commit 5cbf0b8 into temporalio:main Oct 7, 2024
3 checks passed
asproul pushed a commit to asproul/helm-charts that referenced this pull request Dec 16, 2024
…poralio#579)

* fix: add newline after each label to prevent parse error

* fix: remove newline between default labels and resource labels
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.

2 participants