Skip to content

unknown field nodeAffinityType error with v0.30.0 #1420

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

Closed
headyj opened this issue May 29, 2024 · 8 comments
Closed

unknown field nodeAffinityType error with v0.30.0 #1420

headyj opened this issue May 29, 2024 · 8 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.

Comments

@headyj
Copy link

headyj commented May 29, 2024

What version of descheduler are you using?

descheduler version: v0.30.0

Does this issue reproduce with the latest release?

Actually It only occurs with latest release

Which descheduler CLI options are you using?

default command sent by the cronjob: https://github.com/kubernetes-sigs/descheduler/blob/master/charts/descheduler/templates/cronjob.yaml#L79-L89

Please provide a copy of your descheduler policy config file

default policy

What k8s version are you using (kubectl version)?

v1.29 (EKS)

What did you do?

Running the cronjob is not working since v0.30.0 with almost default chart values:

fullnameOverride: descheduler
cronJobApiVersion: batch/v1
schedule: "10 3 * * *"
suspend: false

What did you expect to see?

The job should be executed without error

What did you see instead?

It returns the following error:

descheduler-28615870-wl9vc E0529 03:20:38.162660       1 run.go:74] "command failed" err="failed decoding descheduler's policy config \"/policy-dir/policy.yaml\": strict decoding error: unknown field \"nodeAffinityType\""
@headyj headyj added the kind/bug Categorizes issue or PR as related to a bug. label May 29, 2024
@vytautaskelmelissislt
Copy link

Revert to v0.29.0 and everything will work like in charms.

@a7i
Copy link
Contributor

a7i commented Jun 5, 2024

I believe this was addressed in this PR: #1412

I will work on cutting a patch release v0.30.1

@a7i
Copy link
Contributor

a7i commented Jun 5, 2024

Meanwhile you can try specifying your own policy as highlighted here

@a7i a7i changed the title unknown field nodeAffinityType error with v0.3.0 unknown field nodeAffinityType error with v0.30.0 Jun 5, 2024
@a7i
Copy link
Contributor

a7i commented Jun 5, 2024

#1425

@a7i
Copy link
Contributor

a7i commented Jun 5, 2024

v0.30.1 is out, let me know how it goes.

I tested and verified default profile works ✔️

@a7i a7i added the priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now. label Jun 5, 2024
@headyj
Copy link
Author

headyj commented Jun 5, 2024

Thank you @a7i , I tested v0.30.1 and the cronjob is working now!

@a7i
Copy link
Contributor

a7i commented Jun 5, 2024

thank you for reporting this!

/close

@k8s-ci-robot
Copy link
Contributor

@a7i: Closing this issue.

In response to this:

thank you for reporting this!

/close

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-sigs/prow repository.

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. priority/critical-urgent Highest priority. Must be actively worked on as someone's top priority right now.
Projects
None yet
Development

No branches or pull requests

4 participants