Skip to content

Commit

Permalink
add secrets template for the API token
Browse files Browse the repository at this point in the history
  • Loading branch information
laulauland committed Jan 8, 2024
1 parent 79ab358 commit c4fadc8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion charts/fiberplane-daemon/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ spec:
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: TOKEN
value: {{ .Values.fiberplane.token | default ""}}
valueFrom:
secretKeyRef:
name: token
key: token
optional: false
- name: DATA_SOURCES_PATH
value: {{ .Values.fiberplane.data_sources_path | default "/app/config/data_sources.yaml" }}
- name: RUST_LOG
Expand Down
10 changes: 10 additions & 0 deletions charts/fiberplane-daemon/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ include "fiberplane-daemon.fullname" . }}
labels:
{{- include "fiberplane-daemon.labels" . | nindent 4 }}
type: Opaque
data:
token: {{ required ".Values.fiberplane.token is required!" .Values.fiberplane.token | b64enc | quote }}

0 comments on commit c4fadc8

Please sign in to comment.