Skip to content

Commit d40517f

Browse files
authored
Merge pull request #422 from mbaldessari/ops-private
Fix placement of tokenSecret material
2 parents cbb9bd7 + cc067ff commit d40517f

6 files changed

Lines changed: 9 additions & 9 deletions

operator-install/templates/pattern.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ spec:
1111
gitOpsSpec:
1212
operatorChannel: {{ default "gitops-1.8" .Values.main.gitops.channel }}
1313
operatorSource: {{ default "redhat-operators" .Values.main.gitops.operatorSource }}
14+
{{- if and .Values.main.tokenSecret .Values.main.tokenSecretNamespace }}
15+
tokenSecret: {{ .Values.main.tokenSecret }}
16+
tokenSecretNamespace: {{ .Values.main.tokenSecretNamespace }}
17+
{{- end }} {{/* if and .Values.main.tokenSecret .Values.main.tokenSecretNamespace */}}
1418
multiSourceConfig:
1519
enabled: {{ .Values.main.multiSourceConfig.enabled }}
1620
{{- if .Values.main.analyticsUUID }}
1721
analyticsUUID: {{ .Values.main.analyticsUUID }}
1822
{{- end }} {{/* if .Values.main.analyticsUUID */}}
19-
{{- if and .Values.main.tokenSecret .Values.main.tokenSecretNamespace }}
20-
tokenSecret: {{ .Values.main.tokenSecret }}
21-
tokenSecretNamespace: {{ .Values.main.tokenSecretNamespace }}
22-
{{- end }} {{/* if and .Values.main.tokenSecret .Values.main.tokenSecretNamespace */}}
2323
{{- if .Values.main.extraParameters }}
2424
extraParameters:
2525
{{- range .Values.main.extraParameters }}

tests/operator-install-industrial-edge-factory.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
targetRevision: main
2828
gitOpsSpec:
2929
operatorChannel: gitops-1.8
30-
operatorSource: redhat-operators
30+
operatorSource: redhat-operators
3131
multiSourceConfig:
3232
enabled: false
3333
---

tests/operator-install-industrial-edge-hub.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
targetRevision: main
2828
gitOpsSpec:
2929
operatorChannel: gitops-1.8
30-
operatorSource: redhat-operators
30+
operatorSource: redhat-operators
3131
multiSourceConfig:
3232
enabled: false
3333
---

tests/operator-install-medical-diagnosis-hub.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
targetRevision: main
2828
gitOpsSpec:
2929
operatorChannel: gitops-1.8
30-
operatorSource: redhat-operators
30+
operatorSource: redhat-operators
3131
multiSourceConfig:
3232
enabled: false
3333
---

tests/operator-install-naked.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
targetRevision: main
2828
gitOpsSpec:
2929
operatorChannel: gitops-1.8
30-
operatorSource: redhat-operators
30+
operatorSource: redhat-operators
3131
multiSourceConfig:
3232
enabled: false
3333
---

tests/operator-install-normal.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ spec:
2727
targetRevision: main
2828
gitOpsSpec:
2929
operatorChannel: gitops-1.8
30-
operatorSource: redhat-operators
30+
operatorSource: redhat-operators
3131
multiSourceConfig:
3232
enabled: false
3333
---

0 commit comments

Comments
 (0)