Skip to content

Commit 6f14766

Browse files
committed
feat: Adding secretRef on helm chart
1 parent 3807eab commit 6f14766

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

infra/templates/deployment.yaml

+5-1
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@ spec:
2626
- name: {{ .Chart.Name }}
2727
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
2828
imagePullPolicy: {{ .Values.image.pullPolicy }}
29-
{{- if .Values.config }}
29+
{{- if or .Values.config .Values.secretRef }}
3030
envFrom:
3131
- configMapRef:
3232
name: {{ include "app.fullname" . }}
3333
{{- end }}
34+
{{- if .Values.secretRef }}
35+
- secretRef:
36+
name: {{ .Values.secretRef }}
37+
{{- end }}
3438
ports:
3539
- name: http
3640
containerPort: 1080

infra/values.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
# namespace is the namespace of every object created
43
namespace: default
54

@@ -23,6 +22,9 @@ readinessProbePath: /health
2322
# config is the map of env var passed to the pod
2423
config: {}
2524

25+
# secretRef is the name of secret passed to deployment
26+
secretRef: ""
27+
2628
# resources are the requests and limits for defining the QoS
2729
resources:
2830
limits:

0 commit comments

Comments
 (0)