Skip to content

Commit

Permalink
Remove postgresql.enabled check on Secret injection
Browse files Browse the repository at this point in the history
Removes the postgresql.enabled check on the PostgreSQL Secret injection
in the Deployment.

Turning off the installation of the chart shouldn't prevent a secret
from being injected, since a user can provide an existing Secret name.
  • Loading branch information
mitchnielsen committed May 31, 2024
1 parent 6ce9a35 commit d73cbcf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions charts/prefect-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,11 @@ spec:
{{- end }}
- name: PREFECT_UI_STATIC_DIRECTORY
value: {{ .Values.server.uiConfig.prefectUiStaticDirectory | quote }}
{{- if .Values.postgresql.enabled }}
- name: PREFECT_API_DATABASE_CONNECTION_URL
valueFrom:
secretKeyRef:
name: {{ include "server.postgres-string-secret-name" . }}
key: connection-string
{{- end }}
{{- if .Values.server.env }}
{{- include "common.tplvalues.render" (dict "value" .Values.server.env "context" $) | nindent 12 }}
{{- end }}
Expand Down

0 comments on commit d73cbcf

Please sign in to comment.