Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
theosanderson committed Apr 28, 2024
1 parent 4289e84 commit f5ad648
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions kubernetes/loculus/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- $root := . -}}
{{- $root := . }}
{{- range .Values.secrets }}
---
{{- if eq .type "secret" }}
{{- if eq .type "sealedsecret" }}
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
Expand All @@ -11,7 +11,19 @@ spec:
{{- range $key, $value := .data }}
{{ $key }}: {{ $value }}
{{- end }}
{{else}}
{{- else if eq .type "autogen" }}
apiVersion: "secretgenerator.mittwald.de/v1alpha1"
kind: "StringSecret"
metadata:
name: {{ .name }}
spec:
fields:
{{- range $key, $value := .data }}
- name: {{ $key }}
generate: "password"
length: 32
{{- end }}
{{- else }}
apiVersion: v1
kind: Secret
metadata:
Expand All @@ -22,4 +34,4 @@ data:
{{ $key }}: {{ $value | b64enc | quote }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit f5ad648

Please sign in to comment.