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

Bug: Helm Chart bug, can not use a cascading expander with priority in it, configmap missing #4502

Closed
AndrewFarley opened this issue Dec 7, 2021 · 2 comments
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug.

Comments

@AndrewFarley
Copy link

Issue

The conditional creation logic for the priority-expander-configmap.yaml:

{{- if hasKey .Values.extraArgs "expander" }}
{{- if and (.Values.expanderPriorities) (eq .Values.extraArgs.expander "priority") -}}

Directly conflicts with ability to pass multiple expanders to cascade, info from the FAQ:

Multiple expanders may be passed, i.e. .cluster-autoscaler --expander=priority,least-waste

which results in it not being possible to set...

  extraArgs:
    expander: priority,least-waste  # <--- this
  expanderPriorities: |-
    10:
      - '.*g2\..*'

And have it still set the expanderPriorities configmap. Right now I can set this expander value above and it works properly, except the configmap is not created because of this flawed conditional logic.

Bugfix

Possible bugfix is to change the "eq" to contains in that second line, I'm submitting an MR now.

@ddelange
Copy link

ddelange commented Mar 8, 2022

Can this issue be closed as of #4665?

@AndrewFarley
Copy link
Author

Yep!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cluster-autoscaler kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants