Skip to content

Commit ee3eccd

Browse files
authored
Merge pull request #65 from mbaldessari/add-mch-annotation
Add mch annotation
2 parents a713904 + 69e3914 commit ee3eccd

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)