Skip to content

Commit e993d3c

Browse files
authored
fix: disabling ESO objects when backend: none (#57)
When using backend=none, SNO is not used. Signed-off-by: Beraldo Leal <bleal@redhat.com>
1 parent 1b99369 commit e993d3c

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

charts/coco-supported/sandbox/templates/ssh-key-eso.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if .Values.sandbox.azure }}
1+
{{- if and (ne .Values.global.secretStore.backend "none") (.Values.sandbox.azure) }}
22
---
33
apiVersion: "external-secrets.io/v1beta1"
44
kind: ExternalSecret

charts/hub/trustee/templates/kbs-operator-keys.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if ne .Values.global.secretStore.backend "none" }}
12
---
23
apiVersion: "external-secrets.io/v1beta1"
34
kind: ExternalSecret
@@ -18,4 +19,5 @@ spec:
1819
type: Opaque
1920
dataFrom:
2021
- extract:
21-
key: {{ .Values.kbs.publicKey }}
22+
key: {{ .Values.kbs.publicKey }}
23+
{{- end }}

charts/hub/trustee/templates/kbs-passphrase-eso.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if ne .Values.global.secretStore.backend "none" }}
12
---
23
apiVersion: "external-secrets.io/v1beta1"
34
kind: ExternalSecret
@@ -18,4 +19,5 @@ spec:
1819
type: Opaque
1920
dataFrom:
2021
- extract:
21-
key: {{ .Values.kbs.passphrase }}
22+
key: {{ .Values.kbs.passphrase }}
23+
{{- end }}

charts/hub/trustee/templates/kbsres1-eso.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if ne .Values.global.secretStore.backend "none" }}
12
---
23
apiVersion: "external-secrets.io/v1beta1"
34
kind: ExternalSecret
@@ -18,4 +19,5 @@ spec:
1819
type: Opaque
1920
dataFrom:
2021
- extract:
21-
key: {{ .Values.kbs.kbsres1 }}
22+
key: {{ .Values.kbs.kbsres1 }}
23+
{{- end }}

charts/hub/trustee/templates/securityPolicy-eso.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if ne .Values.global.secretStore.backend "none" }}
12
---
23
apiVersion: "external-secrets.io/v1beta1"
34
kind: ExternalSecret
@@ -18,4 +19,5 @@ spec:
1819
type: generic
1920
dataFrom:
2021
- extract:
21-
key: {{ .Values.kbs.securityPolicy }}
22+
key: {{ .Values.kbs.securityPolicy }}
23+
{{- end }}

0 commit comments

Comments
 (0)