File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ description: A Helm chart to configure Advanced Cluster Manager for OpenShift.
33keywords :
44- pattern
55name : acm
6- version : 0.1.21
6+ version : 0.1.22
Original file line number Diff line number Diff line change 11# acm
22
3- ![ Version: 0.1.21 ] ( https://img.shields.io/badge/Version-0.1.21 -informational?style=flat-square )
3+ ![ Version: 0.1.22 ] ( https://img.shields.io/badge/Version-0.1.22 -informational?style=flat-square )
44
55A Helm chart to configure Advanced Cluster Manager for OpenShift.
66
Original file line number Diff line number Diff line change 5353 namespace : openshift-gitops
5454 labels :
5555 config.openshift.io/inject-trusted-cabundle : ' true'
56- {{- if ne $.Values.global.gitOpsSubNamespace "openshift-operators" }}
56+ {{- if and $.Values.global.gitOpsSubNamespace ( ne $.Values.global.gitOpsSubNamespace "openshift-operators") }}
5757 - complianceType : mustonlyhave
5858 objectDefinition :
5959 apiVersion : v1
Original file line number Diff line number Diff line change @@ -137,6 +137,44 @@ tests:
137137 path : spec.policy-templates[0].objectDefinition.spec.object-templates
138138 count : 2 # Just subscription and configmap
139139
140+ - it : should not create operatorgroup nor namespace object-template when gitOpsSubNamespace is set to null
141+ set :
142+ global :
143+ gitOpsSubNamespace : null
144+ clusterGroup :
145+ managedClusterGroups :
146+ region-one :
147+ name : region-one
148+ acmlabels :
149+ - name : clusterGroup
150+ value : region-one
151+ asserts :
152+ - documentSelector :
153+ path : metadata.name
154+ value : region-one-gitops-policy
155+ lengthEqual :
156+ path : spec.policy-templates[0].objectDefinition.spec.object-templates
157+ count : 2 # Just subscription and configmap
158+
159+ - it : should not create operatorgroup nor namespace object-template when gitOpsSubNamespace is set to empty
160+ set :
161+ global :
162+ gitOpsSubNamespace : ' '
163+ clusterGroup :
164+ managedClusterGroups :
165+ region-one :
166+ name : region-one
167+ acmlabels :
168+ - name : clusterGroup
169+ value : region-one
170+ asserts :
171+ - documentSelector :
172+ path : metadata.name
173+ value : region-one-gitops-policy
174+ lengthEqual :
175+ path : spec.policy-templates[0].objectDefinition.spec.object-templates
176+ count : 2 # Just subscription and configmap
177+
140178 - it : should use gitOpsSubNamespace as subscription namespace when set
141179 set :
142180 global :
You can’t perform that action at this time.
0 commit comments