Skip to content

Commit

Permalink
make the required values mandatory in postgrest
Browse files Browse the repository at this point in the history
Signed-off-by: heidmann <[email protected]>
Signed-off-by: stranljip <[email protected]>
  • Loading branch information
stranljip committed Jun 14, 2023
1 parent 89a2416 commit 1d38906
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions charts/regcred/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{{- if .Values.registryCredentials -}}
kind: Secret
type: kubernetes.io/dockerconfigjson
apiVersion: v1
kind: Secret
metadata:
name: {{ include "regcred.fullname" . }}
labels:
{{- include "regcred.labels" . | nindent 4}}
{{- with .Values.extraLabels }}
{{- toYaml . | nindent 4 }}
{{- end }}
data:
.dockerconfigjson: {{- include "regcred.registryCredentials" .Values.registryCredentials | nindent 4 }}
{{- end -}}
name: {{ include "postgrest.fullname" . }}-secret
namespace: {{ $.Release.Namespace }}
stringData:
db-uri.txt: |-
{{- required "Missing postgrest.dbUri" .Values.postgrest.dbUri | nindent 4 }}
jwt-secret.txt: |-
{{- required "postgrest.jwtSecret" .Values.postgrest.jwtSecret | nindent 4 }}
{{- if .Values.secret }}
{{- toYaml .Values.secret | nindent 2 }}
{{- end }}

0 comments on commit 1d38906

Please sign in to comment.