Compare commits

..

2 Commits

Author SHA1 Message Date
ff7fb92c19 create tempalte name for passFile 2024-03-30 14:43:13 -06:00
46effc5599 fix secret field schema 2024-03-30 14:32:22 -06:00
3 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: matrix-hookshot name: matrix-hookshot
version: 0.0.5 version: 0.0.7
description: Chart for Matrix Hookshot description: Chart for Matrix Hookshot
keywords: keywords:
- matrix - matrix

View File

@@ -30,3 +30,14 @@ Helper for passkey secret name
{{- printf "matrix-hookshot-passkey-secret" }} {{- printf "matrix-hookshot-passkey-secret" }}
{{- end }} {{- end }}
{{- end }} {{- end }}
{{/*
Helper for passkey file name
*/}}
{{- define "hookshot.passFile" -}}
{{- if .Values.hookshot.config.passFile }}
{{- printf "%s" .Values.hookshot.config.passFile -}}
{{- else }}
{{- printf "passkey.pem" }}
{{- end }}
{{- end }}

View File

@@ -61,13 +61,13 @@ spec:
subPath: registration.yml subPath: registration.yml
readOnly: true readOnly: true
- name: passkey - name: passkey
mountPath: "/data/{{ .Values.hookshot.config.passFile }}" mountPath: "/data/{{ template "hookshot.passFile" . }}"
subPath: "{{ .Values.hookshot.config.passFile }}" subPath: {{ template "hookshot.passFile" . }}
readOnly: true readOnly: true
volumes: volumes:
- name: config - name: config
secret: secret:
name: {{ template "hookshot.secretName" . }} secretName: {{ template "hookshot.secretName" . }}
- name: registration - name: registration
secret: secret:
secretName: {{ template "hookshot.registrationSecretName" . }} secretName: {{ template "hookshot.registrationSecretName" . }}