-
Notifications
You must be signed in to change notification settings - Fork 60
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
[agent] Adjust agent configuration settings #58
Conversation
{{- if and .Values.agent.config.accountId .Values.agent.config.workspaceId }} | ||
{{- printf "%s/api/accounts/%s/workspaces/%s" .Values.agent.config.apiUrl .Values.agent.config.accountId .Values.agent.config.workspaceId | quote }} | ||
{{- if eq .Values.agent.apiConfig "cloud" }} | ||
{{- printf "%s/accounts/%s/workspaces/%s" .Values.agent.cloudApiConfig.cloudUrl .Values.agent.cloudApiConfig.accountId .Values.agent.cloudApiConfig.workspaceId | 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.
I'm wondering if we could handle this instead by showing the API URL in the UI somewhere (we could have a page that explains to people how to install an agent for a given work queue, with an example command to run in the case of the Helm chart)
so maybe orion/cloud don't really need to be different after all?
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.
I don't think the Helm chart is mainstream enough to target from the UI. The core library already templates/generates the API URL when users do prefect cloud login
and we've established that they should not be responsible for creating the path to their workspace. I think it's reasonable for the chart to do so as well 🤷♀️
Related to #57, this better structures what configuration is needed for all agent deployments and delineates what is needed for agent deployments with prefect cloud versus configuration for agent deployments with a local orion instance.