Open wu0407 opened 1 year ago
I think it meets expectations. Please refer to RFC 6902
Users don't care about this, they need a more user-friendly configuration experience. And previous already fix on LabelAnnotationOverrider https://github.com/karmada-io/karmada/pull/2971
What happened: I want to add annotation to
spec.template.metadata.annotation
whether annotation fileld is exist, but plaintext overide unable to achieve this goal.direct add annotation
configuration:
It is ok on spec.template.metadata.annotations is exist.
result
It is not ok on spec.template.metadata.annotations is not exist.
result:
Another way is add annotation field first, then add annotation. But It is not work.
configuration:
It is not ok on spec.template.metadata.annotations is exist.
result
It is ok on spec.template.metadata.annotations is not exist.
result:
the last method is one deployment one configuration, so inconvenient.
What you expected to happen: add new annotation successed
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
):