-
Notifications
You must be signed in to change notification settings - Fork 40.6k
Refactor create deployment and add --port flag #91113
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
Conversation
/sig cli |
a9fe301
to
a5c4829
Compare
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.
Is there a test to validate the new command line option behaves as expected? (if there isn't, that might be OK - I'm asking for clarity so that the situation is clear to reviewers)
Port: -1, | ||
PrintFlags: genericclioptions.NewPrintFlags("created").WithTypeSetter(scheme.Scheme), | ||
IOStreams: ioStreams, | ||
} | ||
} | ||
|
||
// NewCmdCreateDeployment is a macro command to create a new deployment. | ||
// This command is better known to users as `kubectl create deployment`. | ||
// Note that this command overlaps significantly with the `kubectl run` command. |
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.
nit / aside: This line might be out of date now.
/hold |
a5c4829
to
172d3c6
Compare
Those look like flakes to me |
No worries, I was waiting for #91199 to land first :) |
172d3c6
to
53bc51d
Compare
/hold cancel |
/retest |
1 similar comment
/retest |
Seems testing fail with this: Line 200 in f097cee
|
53bc51d
to
ed1a0e9
Compare
Good catch, I missed that bit. I accidentally dropped the |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: soltysh The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
/retest |
2 similar comments
/retest |
/retest |
What type of PR is this?
/kind cleanup
/kind feature
What this PR does / why we need it:
This is coming from discussions from #87077 to add
--port
flag support forkubectl create deployment
command.Special notes for your reviewer:
/assign @sallyom @zhouya0
Does this PR introduce a user-facing change?: