Closed cayla closed 10 months ago
+1 I'm seeing the same thing. I also created an issue at the same time you did 😆 https://github.com/kubernetes-sigs/descheduler/issues/1227
Likewise. Looks like the problem is at https://github.com/kubernetes-sigs/descheduler/blob/33e9a52385394a3f4b2cb55bdf717fe52f1a852f/charts/descheduler/templates/cronjob.yaml#L71
Should have been
- --policy-config-file=/policy-dir/policy.yaml
Just like it is in the deployment variant.
@Omar007 thanks for pointing that out. I also verified it against the documentation and it was the same there so I created a PR to resolve this.
What version of descheduler are you using?
descheduler version: 0.28
Does this issue reproduce with the latest release?
Yes
Which descheduler CLI options are you using?
None
Please provide a copy of your descheduler policy config file
Stock helm chart. No options or args
What k8s version are you using (
kubectl version
)?kubectl version
OutputWhat did you do?
helm install my-release --namespace kube-system descheduler/deschedule
What did you expect to see?
What did you see instead?
I believe the issue is the unquoted (or unneeded)
:
in 0.28'scharts/descheduler/templates/cronjob.yaml
- --policy-config-file: "/policy-dir/policy.yaml"
https://github.com/kubernetes-sigs/descheduler/compare/v0.27.1...descheduler-helm-chart-0.28.0#diff-644d004bc3a84952a3c2a97f5f57a85282a0bade5e1c5f124c7407c7788c217c
Without looking into the proper syntax of the command, if I remove the
:
fromtemplates/cronjob.yaml
and install from that, it succeeds.