Skip to content

Commit 69e3914

Browse files
committed
Add mch annotation
We need to be sure if it was us creating it via patterns or not in order to inform our uninstall process more accurately
1 parent a713904 commit 69e3914

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

templates/multiclusterhub.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ metadata:
99
namespace: open-cluster-management
1010
annotations:
1111
installer.open-cluster-management.io/mce-subscription-spec: '{"source": "{{ default "redhat-operators" .Values.acm.mce_operator.source }}" {{- $channel }} }'
12+
patterns.gitops.validatedpatterns.io/managed: true
1213
spec:
1314
{{ .Values.acm.mch_spec | toYaml | indent 2 }}

tests/multiclusterhub_test.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ tests:
4040
path: metadata.annotations["installer.open-cluster-management.io/mce-subscription-spec"]
4141
value: '{"source": "foo-source","channel": "foo-channel" }'
4242

43+
- it: Should have the managed annotation
44+
asserts:
45+
- equal:
46+
path: metadata.annotations["patterns.gitops.validatedpatterns.io/managed"]
47+
value: true
48+
4349
- it: Should have empty spec by default
4450
asserts:
4551
- equal:

0 commit comments

Comments
 (0)