Skip to content

Support setting extra args in Deployment command#129

Merged
mitchnielsen merged 1 commit intomainfrom
support-extra-args
Nov 1, 2024
Merged

Support setting extra args in Deployment command#129
mitchnielsen merged 1 commit intomainfrom
support-extra-args

Conversation

@mitchnielsen
Copy link
Copy Markdown
Member

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 a team and chrisguidry as code owners November 1, 2024 20:12
Copy link
Copy Markdown

@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

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
Copy Markdown
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
Copy Markdown
Member 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
Copy Markdown
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
@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