Skip to content
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

Merged
merged 3 commits into from
Sep 22, 2022
Merged

Conversation

jamiezieziula
Copy link
Contributor

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.

@jamiezieziula jamiezieziula added the enhancement An improvement of an existing feature label Sep 22, 2022
{{- 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 }}
Copy link
Contributor

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?

Copy link
Contributor

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 🤷‍♀️

jawnsy
jawnsy previously approved these changes Sep 22, 2022
@jamiezieziula jamiezieziula merged commit d743e36 into main Sep 22, 2022
@jamiezieziula jamiezieziula deleted the workqueue branch September 22, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking enhancement An improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants