argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18k stars 5.48k forks source link

Report the field that violated the updates to fields are forbidden constraint #20899

Open jsoref opened 18 hours ago

jsoref commented 18 hours ago

Summary

Show at least one field/value change that violates the constraint

Motivation

one or more objects failed to apply, reason: StatefulSet.apps "postgresql" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden (retried 5 times).

Originally posted by @headyj in https://github.com/argoproj/argo-cd/issues/10168#issuecomment-1824622157

The message is technically correct, but isn't really actionable as it isn't clear what is causing it (which of the hundreds of fields made the system unhappy).

Proposal

Identify at least one field that violates the immutable fields constraint.

aali309 commented 10 hours ago

assign this to me please.