Skip to content

Commit c4a54ed

Browse files
committed
Add logic to disable the creation of secrets
1 parent cb27ca9 commit c4a54ed

File tree

7 files changed

+8
-6
lines changed

7 files changed

+8
-6
lines changed

charts/sourcegraph/templates/codeinsights-db/codeinsights-db.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.codeInsightsDB.auth.existingSecret }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets (not .Values.codeInsightsDB.auth.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/templates/codeintel-db/codeintel-db.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.codeIntelDB.auth.existingSecret }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets (not .Values.codeIntelDB.auth.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/templates/grafana/grafana.pgsql.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if and .Values.grafana.auth (not .Values.grafana.auth.existingSecret) }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets .Values.grafana.auth (not .Values.grafana.auth.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/templates/pgsql/pgsql.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.pgsql.auth.existingSecret }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets (not .Values.pgsql.auth.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/templates/redis/redis-cache.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.redisCache.connection.existingSecret }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets (not .Values.redisCache.connection.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/templates/redis/redis-store.Secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if not .Values.redisStore.connection.existingSecret }}
1+
{{- if and .Values.sourcegraph.createKubernetesSecrets (not .Values.redisStore.connection.existingSecret) -}}
22
apiVersion: v1
33
kind: Secret
44
metadata:

charts/sourcegraph/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ sourcegraph:
3838
revisionHistoryLimit: 10
3939
# -- Add extra labels to all services
4040
serviceLabels: {}
41+
# -- Create Kubernetes secrets objects
42+
createKubernetesSecrets: true
4143

4244
# Generic application configuration options, used by most applications below
4345
# app: # Generally matches directory name

0 commit comments

Comments
 (0)