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

Not being able to update ScalinJob jobTemplate metadata #1560

Closed
connatix-cradulescu opened this issue Feb 3, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@connatix-cradulescu
Copy link

Hi,

I am trying to add a certain label and annotation to a job template but I am not able to do that. Here is my configuration:

spec:
  jobTargetRef:
    template:
      metadata:
        labels:
          app: keda-scaling-{{ .Release.Namespace }}
        annotations:
          sidecar.istio.io/inject: "false"
      spec:
        containers:
    ------

Here is the result in cluster:

 spec:
    failedJobsHistoryLimit: 1
    jobTargetRef:
      backoffLimit: 4
      template:
        metadata: {}
        spec:
          containers:

From the format, this would be the logical choice but seems the CRD is ignoring my setup.

Any advice please, on how I can update the metadata?

@connatix-cradulescu connatix-cradulescu added the bug Something isn't working label Feb 3, 2021
@zroubalik
Copy link
Member

Duplicate of: #1311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants