WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 340f659

Browse files
committed
test local secrets
1 parent f7005ed commit 340f659

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- if not (index .Values "infisical-secret" "enabled") }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: debezium
6+
type: Opaque
7+
stringData:
8+
MARIADB_PASSWORD: "banana"
9+
RABBITMQ_PASSWORD: "banana"
10+
{{- end}}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{{- if not (index .Values "infisical-secret" "enabled") }}
2+
apiVersion: v1
3+
kind: Secret
4+
metadata:
5+
name: debezium
6+
type: Opaque
7+
stringData:
8+
MARIADB_PASSWORD: "banana"
9+
RABBITMQ_PASSWORD: "banana"
10+
{{- end}}

common/infisical-secret/templates/secret.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{ if .Values.enabled }}
1+
{{- if .Values.enabled }}
22
apiVersion: secrets.infisical.com/v1alpha1
33
kind: InfisicalSecret
44
metadata:
@@ -18,4 +18,4 @@ spec:
1818
secretName: {{ .Values.name }}
1919
secretNamespace: {{ .Release.Namespace }}
2020
creationPolicy: "Owner"
21-
{{- end }}
21+
{{- end }}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
name: null # Define your own!
22
overrideSecretPath: null # Optional, if name != secretPath
3-
secretNamespace: faf-ops
3+
secretNamespace: faf-ops # This must be the namespace where the infisical operator is running

config/test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
hostName: "faftest2"
22
environment: "test"
3+
infisical: # deprecated, use infisical-secret instead
4+
projectSlug: "k3s-cluster-zj-th"
5+
envSlug: "test"
36
infisical-secret:
47
enabled: true
58
projectSlug: "k3s-cluster-zj-th"

0 commit comments

Comments
 (0)