aws / karpenter-provider-aws

Karpenter is a Kubernetes Node Autoscaler built for flexibility, performance, and simplicity.
https://karpenter.sh
Apache License 2.0
6.15k stars 849 forks source link

Errors after v0.37.0 upgrade: "conditions[1].reason in body should be at least 1 chars long" #6420

Open project-administrator opened 5 days ago

project-administrator commented 5 days ago

Description

Observed Behavior: Karpenter shows errors in the logs:

{"level":"ERROR","time":"2024-06-27T11:32:14.527Z","logger":"controller","message":"Reconciler error","commit":"490ef94","controller":"nodeclaim.disruption","controllerGroup":"karpenter.sh","controllerKind":"NodeClaim","NodeClaim":{"name":"trusted-nvqdc"},"namespace":"","name":"trusted-nvqdc","reconcileID":"7cd8d5d2-1d10-4806-8866-92c138032406","error":"NodeClaim.karpenter.sh \"trusted-nvqdc\" is invalid: [conditions[1].reason: Invalid value: \"\": conditions[1].reason in body should be at least 1 chars long, conditions[2].reason: Invalid value: \"\": conditions[2].reason in body should be at least 1 chars long, conditions[4].reason: Invalid value: \"\": conditions[4].reason in body should be at least 1 chars long]"}

Expected Behavior: No errors in the logs

Reproduction Steps (Please include YAML): I updated the CRDs according to the instructions by running kubectl apply manually. After that, I upgraded the helm chart from version v0.36.2 to v0.37.0. It is also worth noting, that before the chart was upgraded the existing v0.36.2 pods had been restarted (due to unrelated events).

Versions:

jonathan-innis commented 1 day ago

Looks quite similar to #6326. I believe this is the same issue and gets resolved by upgrading the CRDs to the latest version as described here: https://karpenter.sh/docs/upgrading/upgrade-guide/#crd-upgrades