Skip to content

Commit 82d3e26

Browse files
authored
Merge pull request #484 from claudiol/fix-for-operator-group
bug: Fix to generate OperatorGroup definition when namespaces definition has labels
2 parents 2a8870e + 0283fc2 commit 82d3e26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

clustergroup/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ spec:
195195
{{- if or (empty $operatorgroupExcludes) (not (has . $operatorgroupExcludes)) }}
196196
{{- range $k, $v := $ns }}{{- /* We loop here even though the map has always just one key */}}
197197
{{- if $v }}
198-
{{- if $v.operatorGroup }}{{- /* Checks if the user sets operatorGroup: false */}}
198+
{{- if or $v.operatorGroup (not (hasKey $v "operatorGroup")) }}{{- /* Checks if the user sets operatorGroup: false */}}
199199
apiVersion: operators.coreos.com/v1
200200
kind: OperatorGroup
201201
metadata:

0 commit comments

Comments
 (0)