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

helm install Error using default controllerManagerConfigYaml #1315

Closed
B1F030 opened this issue Nov 8, 2023 · 1 comment · Fixed by #1316
Closed

helm install Error using default controllerManagerConfigYaml #1315

B1F030 opened this issue Nov 8, 2023 · 1 comment · Fixed by #1316
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@B1F030
Copy link
Member

B1F030 commented Nov 8, 2023

What happened:
When using Helm to install kueue, Error happens:
# helm install kueue kueue/ --namespace kueue-system

Error: INSTALLATION FAILED: template: kueue/templates/webhook/webhook.yaml:120:84:
executing "kueue/templates/webhook/webhook.yaml" at <$integrationsConfig.podOptions>:
wrong type for value; expected map[string]interface {}; got interface {}

in webhook.yaml#L120:

{{- if and (hasKey $integrationsConfig "podOptions") (hasKey $integrationsConfig.podOptions "namespaceSelector") }}

When integrations.podOptions is not set(by default), the expression above caused this Error below:

$integrationsConfig.podOptions got interface {}

What you expected to happen:
This Error shoud not happen when default config is used.

How to reproduce it (as minimally and precisely as possible):

$ git clone https://github.com/kubernetes-sigs/kueue.git
$ cd kueue/charts
$ helm install kueue kueue/ --create-namespace --namespace kueue-system

Anything else we need to know?:
related PR:
#1247

Environment:

  • Kubernetes version (use kubectl version):
  • Kueue version (use git describe --tags --dirty --always): main
  • Cloud provider or hardware configuration:
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@B1F030 B1F030 added the kind/bug Categorizes issue or PR as related to a bug. label Nov 8, 2023
@stuton
Copy link
Contributor

stuton commented Nov 8, 2023

/assign

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

Successfully merging a pull request may close this issue.

2 participants