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
feat(kubectl rollout): support multiple resources for rollout status #108777
feat(kubectl rollout): support multiple resources for rollout status #108777
Conversation
Welcome @pjo256! |
Hi @pjo256. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig cli |
/assign @eddiezane |
@eddiezane Any chance you'd be able to take a look? |
4c23022
to
ff8801d
Compare
/ok-to-test |
@@ -168,73 +168,67 @@ func (o *RolloutStatusOptions) Run() error { | |||
LabelSelectorParam(o.LabelSelector). | |||
FilenameParam(o.EnforceNamespace, o.FilenameOptions). | |||
ResourceTypeOrNameArgs(true, o.BuilderArgs...). | |||
SingleResourceType(). | |||
ContinueOnError(). |
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.
Could you please elaborate what will happen if one of resources get error like in here https://github.com/kubernetes/kubernetes/pull/108777/files#diff-484e3b9bfad2141dd92637f42b9d227b2d7e91d0932bb85ec7cf098c20770691R394-R396.
Do resources, whose are not getting any error, stay in waiting stage? or we exit immediately?
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.
We run against every visited resource as opposed to exiting immediately on the first error, e.g.
_output/bin/kubectl rollout status -f . -R --timeout=10s
deployment "echoserver-1" successfully rolled out
Waiting for deployment "echoserver-2" rollout to finish: 0 of 1 updated replicas are available...
deployment "echoserver-3" successfully rolled out
error: timed out waiting for the condition
While looking into other rollout
commands, this looks consistent but I noticed these commands (pause, resume, history
) have a Flatten()
call prior to Do()
. Do we want that call here for nested manifests?
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.
/triage accepted
/priority backlog
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pjo256, 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds support for multiple resources in
kubectl rollout status
(including-R
),e.g.where before this would fail with
Which issue(s) this PR fixes:
Fixes #72216
Special notes for your reviewer:
This is my first k8s PR - should I add unit tests for
kubectl rollout status
in https://github.com/kubernetes/kubernetes/blob/master/test/cmd/generic-resources.sh#L359? Noticed we don't have any coverage there.Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: