mirror of
https://github.com/shankar0123/certctl.git
synced 2026-06-11 03:48:54 +00:00
65567d0d83
- Use gt (int .Values.server.replicas) 1 to avoid incompatible type comparison between YAML integer and template literal - Remove fail directive for empty apiKey — lint runs with defaults, operators set the key via --set at install time Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
17 lines
665 B
YAML
17 lines
665 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: {{ include "certctl.fullname" . }}-server
|
|
labels:
|
|
{{- include "certctl.labels" . | nindent 4 }}
|
|
app.kubernetes.io/component: server
|
|
type: Opaque
|
|
stringData:
|
|
database-url: postgres://{{ .Values.postgresql.auth.username }}:$(POSTGRES_PASSWORD)@{{ include "certctl.fullname" . }}-postgres:5432/{{ .Values.postgresql.auth.database }}?sslmode=disable
|
|
{{- if and (eq .Values.server.auth.type "api-key") .Values.server.auth.apiKey }}
|
|
api-key: {{ .Values.server.auth.apiKey | quote }}
|
|
{{- end }}
|
|
{{- if .Values.server.smtp.enabled }}
|
|
smtp-password: {{ .Values.server.smtp.password | quote }}
|
|
{{- end }}
|