This repo contains examples of different diff'ing scenarios with kubectl diff and Argo CD Diff strategies
Can enable server-side-diff in Argo CD through annotation or by adding:
spec:
  controller:
    extraCommandArgs:
      - '--server-side-diff-enabled'
- How Apply calculates differences and merges changes
 - Interesting comments in Kubernetes issues:
 
These use cases where run using OpenShift GitOps 1.18 (Argo CD 3.1)
It uses the default setup of cluster-admins group, to create this group run the following:
oc adm groups new cluster-admins admin
You also need to give the application-controller SA cluster-admin rights:
oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller -n openshift-gitops