Skip to content

Selector for job aux deployment is mutable #1661

@nilsgstrabo

Description

@nilsgstrabo

The selector labels for the job aux deployment is composed of a value that can change (azure.workload.identity/use=true).
Field Spec.Selector.MatchLabels is immutable and cannot be changed after deployment is created, but the azure.workload.identity/use label is not stable. IF a developer enables/disables workload identity for a job after it was created, reconciliation will fail with a field is immutable error

Code:

desiredJobAuxDeployment.Spec.Selector.MatchLabels = deploy.getJobAuxDeploymentPodLabels(deployComponent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions