Replies: 3 comments 3 replies
-
Do you or something else set managedFields in the target manifests? |
Beta Was this translation helpful? Give feedback.
0 replies
-
thanks for your reply, No we are not setting them, here are the managedfields after the first sync for the default namespace, seems like this is generated by k8s or argo
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ah, interesting, why is |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We use sever-side apply on multiple resources but the sync fails with: metadata.managedFields must be nil
We use this among others things to patch the default namespace with an extra label.
When we manually reset the managedfields to an empty array the sync succeeds one time.
After the sync the managedfields are back again and arogcd is not able to sync the same resource again
This is the patch we are trying to apply
apiVersion: v1
kind: Namespace
metadata:
name: default
annotations:
argocd.argoproj.io/sync-options: ServerSideApply=true, Validate=false
labels:
network.openshift.io/policy-group: policygroup
Are we missing something here?
Beta Was this translation helpful? Give feedback.
All reactions