Skip to content

Commit 0283fc2

Browse files
committed
bug: Fix to generate OperatorGroup definition when namespaces definition has labels
- Added condition to check if operatorGroup key exists {{- if or $v.operatorGroup (not (hasKey $v "operatorGroup")) }} - Default behavior is that we generate an OperatorGroup for a Namespace definition.
1 parent e8c9016 commit 0283fc2

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)