Skip to content

Commit

Permalink
fix(helm): put password into file
Browse files Browse the repository at this point in the history
Signed-off-by: WoodenMaiden <yann.pomie@laposte.net>
  • Loading branch information
WoodenMaiden committed Aug 30, 2024
1 parent edf34a0 commit 1c673d3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions agrold-javaweb/charts/virtuoso/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ metadata:
name: {{ include "sparql.secretName" . }}
type: Opaque
data:
DAVPassword: {{ .Values.DAVPassword | default (randAlphaNum 32) | b64enc | quote }}
DBAPassword: {{ .Values.DBAPassword | default (randAlphaNum 32) | b64enc | quote }}
dav_password: {{ .Values.DAVPassword | default (randAlphaNum 32) | b64enc | quote }}
dba_password: {{ .Values.DBAPassword | default (randAlphaNum 32) | b64enc | quote }}

22 changes: 11 additions & 11 deletions agrold-javaweb/charts/virtuoso/templates/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $mount_initdb := or .Values.initdb.enabled .Values.facetedSearch.enabled (not .Values.serveConductor) -}}
apiVersion: apps/v1
kind: StatefulSet
metadata:
Expand Down Expand Up @@ -32,13 +33,15 @@ spec:
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
volumes:
{{- $mount_initdb := or .Values.initdb.enabled .Values.facetedSearch.enabled (not .Values.serveConductor) -}}
{{- if $mount_initdb }}
- name: {{ include "sparql.initdb.configMapName" . }}
configMap:
defaultMode: 0551
name: {{ include "sparql.initdb.configMapName" . }}
{{- end }}
- name: {{ include "sparql.secretName" . }}
secret:
secretName: {{ include "sparql.secretName" . }}
containers:
- name: {{ .Chart.Name }}
securityContext:
Expand Down Expand Up @@ -67,21 +70,18 @@ spec:
- name: {{ .Values.persistence.name }}-pvc
mountPath: /database
{{- end }}
- name: {{ include "sparql.secretName" . }}
mountPath: /settings
readOnly: true
env:
- name: DBA_PASSWORD_FILE
value: /settings/dba_password
- name: DAV_PASSWORD_FILE
value: /settings/dav_password
{{- range $key, $value := .Values.env }}
- name: {{ $key | quote }}
value: {{ $value | quote }}
{{- end }}
- name: "DAV_PASSWORD"
valueFrom:
secretKeyRef:
name: {{ include "sparql.secretName" . }}
key: DAVPassword
- name: "DBA_PASSWORD"
valueFrom:
secretKeyRef:
name: {{ include "sparql.secretName" . }}
key: DBAPassword
{{- if .Values.iniFileValues.enabled -}}
{{- range $section, $entry := .Values.iniFileValues.values }}
{{- range $key, $_ := $entry }}
Expand Down

0 comments on commit 1c673d3

Please sign in to comment.