-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
1.8.2
-
8
-
False
-
None
-
False
-
-
-
GitOps Tangerine - Sprint 3257, GitOps Tangerine - Sprint 3258, GitOps Tangerine - Sprint 3259, GitOps Tangerine - Sprint 3260, GitOps Tangerine - Sprint 3261, GitOps Scarlet - Sprint 3262, GitOps Scarlet - Sprint 3263, GitOps Scarlet - Sprint 3264, GitOps Scarlet - Sprint 6/3265, GitOps Scarlet - Sprint 7/3266
Description of problem:
Ignore differences with managed fields doesn't appear to work in OpenShift GitOps
Prerequisites (if any, like setup, operators/versions):
ENV:
OCP: 4.11
Openshift GitOps 1.8.2
(ArgoCD 2.6.7)
The client is using the manager of the pod-security.kubernetes.io labels to ignore the differences.
As per the update from the client in the description Ignore differences works only with JQ path expressions.
The differences are successfully ignored.
====================
ignoreDifferences:
- kind: Namespace
jsonPointers:
- /metadata/labels/pod-security.kubernetes.io~1audit
- /metadata/labels/pod-security.kubernetes.io~1audit-version
- /metadata/labels/pod-security.kubernetes.io~1warn
- /metadata/labels/pod-security.kubernetes.io~1warn-version
====================
While using the "managedFieldsManagers:" manager it does not seem to Ignore differences.
====================
ignoreDifferences:
- kind: Namespace
managedFieldsManagers:
- cluster-policy-controller
====================
Actual results:
The ignoreDifferences does not work when using the "managedFieldsManagers:" and
Expected results:
The sync should work with ignoreDifferences when using the "managedFieldsManagers:" in ArgoCD.
Build Details:
Openshift GitOps 1.8.2
(ArgoCD 2.6.7)
Additional details:
- There already exists an ongoing upstream bug: https://github.com/argoproj/argo-cd/issues/9071