Skip to content

Commit bf3f36b

Browse files
Merge pull request #697 from imiller0/ocpbugs-82698
OCPBUGS-81698: Exclude local-cluster from gitops
2 parents 2eb590a + 9bfee92 commit bf3f36b

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

telco-hub/configuration/reference-crs-kube-compare/required/gitops/app-project.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ metadata:
66
namespace: openshift-gitops
77
spec:
88
destinations:
9+
# Hub policies are copied by ACM to the local-cluster namespace. This causes
10+
# ArgoCD/GitOps to see those policies and flag them for pruning due to argocd
11+
# annotations which remain on the copies. Prevent this confusion by restricting
12+
# GitOps from managing resources in the local-cluster namespace where the
13+
# copies are being created.
14+
- namespace: '!local-cluster'
15+
server: '*'
916
- namespace: '*'
1017
server: '*'
1118
sourceRepos:

telco-hub/configuration/reference-crs/required/gitops/app-project.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ metadata:
88
namespace: openshift-gitops
99
spec:
1010
destinations:
11+
# Hub policies are copied by ACM to the local-cluster namespace. This causes
12+
# ArgoCD/GitOps to see those policies and flag them for pruning due to argocd
13+
# annotations which remain on the copies. Prevent this confusion by restricting
14+
# GitOps from managing resources in the local-cluster namespace where the
15+
# copies are being created.
16+
- namespace: '!local-cluster'
17+
server: '*'
1118
- namespace: '*'
1219
server: '*'
1320
sourceRepos:

0 commit comments

Comments
 (0)