-
Notifications
You must be signed in to change notification settings - Fork 63
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
Conversation
PUBLIC_UI_URL
on the server chartserver
chart
- --host | ||
- 0.0.0.0 | ||
- --log-level | ||
- WARNING |
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.
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 }} |
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 were already being inferred or set elsewhere, so explicitly setting them here now
- name: PREFECT_UI_ENABLED | ||
value: {{ .Values.server.uiConfig.enabled | quote }} |
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.
same thing here, this is the default behavior
- name: PREFECT_API_URL | ||
value: {{ .Values.server.prefectApiUrl | quote }} |
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.
we were not previously setting this, which was incorrect behavior. All other URLs are inferred from this, so it needs to be set.
{{- 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 }} |
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 are only necessary if the endpoint for the UI is different than the URL set in the prefectApiUrl
parameter
This PR will implement a breaking change. The following will need to be updated in the end users environment when upgrading:
Prefect API URL (server.prefectApiUrl)
This value was previously not exposed. It is set to default value that was previously set at
server.publicApiUrl
. If the URL of your server installation is nothttp://localhost:4200
, you will need to override that value here.Prefect UI Configuration
Unless you have a different endpoint for your UI server, you can ignore this change. If your UI endpoint is unique from the API endpoint, you will need to set both
server.uiConfig.prefectUiApiUrl
andserver.uiConfig.prefectUiUrl
.Debug Level
If you previously had
server.image.debug
set totrue
, you will need to remove that setting and instead setserver.debug
to betrue
See here for any questions around the possible server environment variables