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

Support setting extra args in Deployment command #129

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

mitchnielsen
Copy link
Contributor

Supports setting extra args in the Deployment command.

This will allow us to set --no-ui in cases where we don't need to serve the UI.

Related to https://linear.app/prefect/issue/PLA-452/cycle-5-catch-all

Supports setting extra args in the Deployment command.

This will allow us to set `--no-ui` in cases where we don't need to
serve the UI.

Related to https://linear.app/prefect/issue/PLA-452/cycle-5-catch-all
@mitchnielsen mitchnielsen self-assigned this Nov 1, 2024
@mitchnielsen mitchnielsen added the feature New feature label Nov 1, 2024
@mitchnielsen mitchnielsen marked this pull request as ready for review November 1, 2024 20:12
@mitchnielsen mitchnielsen requested review from chrisguidry and a team as code owners November 1, 2024 20:12
Copy link

@prefectcboyd prefectcboyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@@ -281,7 +284,10 @@ func (s *PrefectServer) Image() string {
}

func (s *PrefectServer) Command() []string {
return []string{"prefect", "server", "start", "--host", "0.0.0.0"}
command := []string{"prefect", "server", "start", "--host", "0.0.0.0"}
command = append(command, s.Spec.ExtraArgs...)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would this really be extraCommands since args are their own field in k8s?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm. technically yes, but here we're shoving args into the command field and not specifying any args directly, even though everything after the first one is an arg 🤔

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah totally fair

@mitchnielsen mitchnielsen merged commit 462f910 into main Nov 1, 2024
9 of 10 checks passed
@mitchnielsen mitchnielsen deleted the support-extra-args branch November 1, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants