-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Helm chart : expanderPriorities in values are object but string expected in template #3776
Comments
For anyone encountering this. A simple workaround is to use a YAML literal: expanderPriorities: |-
10:
- asg10
0:
- asg0 |
@brennerm why not change the template to:
instead ? |
@eddycharly Cause the chart expects the value to be a string. Try passing the YAML object and it'll fail. |
@brennerm yeah sure, i meant changing the template (not the values). That is, changing
And then use an object in the values instead of a string literal: expanderPriorities:
10:
- asg10
0:
- asg0 I feel like an object would be more natural than a string literal in this case. |
Ahh, yeah that would fix it but would introduce a breaking change. 👍 |
Unfortunately yes. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Either the docs or the template needs updating so this is consistent. |
/remove-lifecycle rotten |
much thanks @brennerm , i've spent 2 hours trying to figure out wtf is the syntax for this since it's not documented. Your suggestion of the YAML literal fixed it for me. |
Just noticed this issue after opening the PR! Any chance of cutting a backward release to fix this? My use case is to use the chart with the Terraform Helm provider. The code looks like this:
It's a nice clean interface with types for
I think this will work, but not sure yet, and anyway it's not ideal as it will be easy to pass in the wrong value. WDYT about |
I do this in terraform at the moment and just capture it as a string. locals {
expander_config = <<-EOT
100:
- .*-spot-.*
10:
- .*
EOT
} I stand by my comment above that either the docs or the implementation need changing; it wouldn't be too complicated to change the implementation to support both formats (see example). |
Good point, @stevehipwell! Updated my PR with your idea. I hope this will be merged. I burned a couple of hours on this issue. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
I believe this can be closed given your PR has been merged and the new version of the chart released, any objection @bwhaley ? |
Yup, agreed! |
/close |
@gjtempleton: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In
values.yaml
it looks likeexpanderPriorities
should be passed as anobject
autoscaler/charts/cluster-autoscaler/values.yaml
Line 126 in 04b2ae8
But the template expects it to be a string
autoscaler/charts/cluster-autoscaler/templates/priority-expander-configmap.yaml
Line 11 in 04b2ae8
The text was updated successfully, but these errors were encountered: