-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
2.14.0 release cannot use jobTargetRef template metadata labels #5752
Comments
Perhaps related to #5739? |
Thanks for reporting, are you using helm to install KEDA or the raw manifests? I assume that you see the error during the manifest apply and not in the operator, right? |
We are seeing that behaviour as well. We install KEDA using helm. When applying a ScaledJob with Diffing the ScaledJob definition (CRD) between 2.13.2 (KEDA chart version) and 2.14.0 (KEDA chart version) it looks like the Should we open another issue in the |
Interesting... We don't generate the CRDs manually but self generating it, so probably some behaviour has changed in upstream deps and we will need to cover it also by code (chart CRDs are just a port from this repo). Are you willing to take a look? |
I can try to figure something out today. I'll take a further look at it in a bit. Just quickly saw that this seems to be patched in
|
You are right! I have just noticed that I could copy the CRD from the wrong place during the chart upgrade. |
Yes, I think, the ScaledJob looks right downloaded from the release. |
Yeah, I was to post here the fix xD Thanks for the review! I used the wrong manifests when I was upgrading the helm chart, sorry |
Happens 🙂 |
Report
In 2.13.1, we were using a scaledJob as so:
spec: jobTargetRef: backoffLimit: 1 template: metadata: labels: azure.workload.identity/use: "true"
Which worked fine. However since 2.14.0, the same configuration throws the following error:
Error when applying patch: Strict decoding error: unknown field "spec.jobTargetRef.template.metadata.labels"
Downgrading to 2.13.1 resolves the error.
Expected Behavior
Patch is applied as expected, pod controlled by the job has the relevant Azure workload identity label.
Actual Behavior
Patch isn't applied, field is ignored.
Steps to Reproduce the Problem
Logs from KEDA operator
No response
KEDA Version
2.14.0
Kubernetes Version
1.28
Platform
Microsoft Azure
Scaler Details
Azure Service Bus
Anything else?
No response
The text was updated successfully, but these errors were encountered: