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) |
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/uselabel is not stable. IF a developer enables/disables workload identity for a job after it was created, reconciliation will fail with afield is immutableerrorCode:
radix-operator/pkg/apis/deployment/deployment.go
Line 482 in 1324e9b