Skip to content

Commit 983b5a7

Browse files
authored
Merge pull request #21 from flanksource/feat/helm-chart
chore: Moves defaults to values file & adds comments.
2 parents da44ce8 + 0117254 commit 983b5a7

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

chart/templates/deployment.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ spec:
2828
- name: DB_URL
2929
valueFrom:
3030
secretKeyRef:
31-
name: {{ .Values.db.secretKeyRef.name | default "postgres-connection" }}
32-
key: {{ .Values.db.secretKeyRef.key | default 'DB_URL' }}
31+
name: {{ .Values.db.secretKeyRef.name }}
32+
key: {{ .Values.db.secretKeyRef.key }}
3333
resources:
3434
{{- toYaml .Values.resources | nindent 12 }}
3535
{{- with .Values.extra }}

chart/values.yaml

+8-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,17 @@ image:
1414
tag: "latest"
1515

1616
db:
17+
# Setting this to true will create a postgres stateful set for config-db to connect to.
1718
enabled: false
18-
secretKeyRef:
19-
name:
20-
key: "DB_URL"
2119
storageClass:
2220
storage:
21+
secretKeyRef:
22+
# Setting the name of the secret will disable secret creation in this chart and look for an existing secret (whose name is specified in this field) to mount.
23+
# When setting this up in a fresh environment as a standalone app, it's best to leave the value empty.
24+
name:
25+
# This is the key that either the secret will create(if secretRefKey is empty) or this is the key it'll look for in the secret(if secretRefKey is mentioned).
26+
# The name of the key is mandatory to set.
27+
key: DB_URL
2328

2429
ingress:
2530
enabled: false

0 commit comments

Comments
 (0)