-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update environment variables passed to the prefect server
chart
#259
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,10 +64,6 @@ spec: | |
- prefect | ||
- server | ||
- start | ||
- --host | ||
- 0.0.0.0 | ||
- --log-level | ||
- WARNING | ||
- --port | ||
- {{ .Values.service.targetPort | quote }} | ||
workingDir: /home/prefect | ||
|
@@ -76,11 +72,25 @@ spec: | |
env: | ||
- name: HOME | ||
value: /home/prefect | ||
- name: PREFECT_API_URL | ||
value: {{ .Values.server.prefectApiUrl | quote }} | ||
Comment on lines
+75
to
+76
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we were not previously setting this, which was incorrect behavior. All other URLs are inferred from this, so it needs to be set. |
||
- name: PREFECT_DEBUG_MODE | ||
value: {{ .Values.server.image.debug | quote }} | ||
{{- if .Values.server.publicApiUrl }} | ||
value: {{ .Values.server.debug | quote }} | ||
- name: PREFECT_LOGGING_SERVER_LEVEL | ||
value: {{ .Values.server.loggingLevel | quote }} | ||
- name: PREFECT_SERVER_API_HOST | ||
value: {{ .Values.server.prefectApiHost | quote }} | ||
- name: PREFECT_SERVER_API_PORT | ||
value: {{ .Values.service.targetPort | quote }} | ||
Comment on lines
+78
to
+84
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these were already being inferred or set elsewhere, so explicitly setting them here now |
||
- name: PREFECT_UI_ENABLED | ||
value: {{ .Values.server.uiConfig.enabled | quote }} | ||
Comment on lines
+85
to
+86
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same thing here, this is the default behavior |
||
{{- if .Values.server.uiConfig.prefectUiApiUrl }} | ||
- name: PREFECT_UI_API_URL | ||
value: {{ .Values.server.publicApiUrl | quote }} | ||
value: {{ .Values.server.uiConfig.prefectUiApiUrl | quote }} | ||
{{- end }} | ||
{{- if .Values.server.uiConfig.prefectUiUrl }} | ||
- name: PREFECT_UI_URL | ||
value: {{ .Values.server.uiConfig.prefectUiUrl | quote }} | ||
Comment on lines
+87
to
+93
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. these values are only necessary if the endpoint for the UI is different than the URL set in the |
||
{{- end }} | ||
{{- if .Values.postgresql.enabled }} | ||
- name: PREFECT_API_DATABASE_CONNECTION_URL | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these values aren't changing, but are properly exposed to the end user now.