Unverified Commit 1a341f6b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #52912 from zjj2wry/rollout-status

Automatic merge from submit-queue (batch tested with PRs 52912, 57381). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. bug(cli):fix kubectl rollout status not recoginze resource namespace **What this PR does / why we need it**: Fixes #42364 **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: cc @kubernetes/sig-cli-pr-reviews **Release note**: ```release-note NONE ```
parents 62e33e0e 0fab7c1b
...@@ -125,7 +125,7 @@ func RunStatus(f cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []stri ...@@ -125,7 +125,7 @@ func RunStatus(f cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []stri
} }
// check if deployment's has finished the rollout // check if deployment's has finished the rollout
status, done, err := statusViewer.Status(cmdNamespace, info.Name, revision) status, done, err := statusViewer.Status(info.Namespace, info.Name, revision)
if err != nil { if err != nil {
return err return err
} }
...@@ -150,7 +150,7 @@ func RunStatus(f cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []stri ...@@ -150,7 +150,7 @@ func RunStatus(f cmdutil.Factory, cmd *cobra.Command, out io.Writer, args []stri
return intr.Run(func() error { return intr.Run(func() error {
_, err := watch.Until(0, w, func(e watch.Event) (bool, error) { _, err := watch.Until(0, w, func(e watch.Event) (bool, error) {
// print deployment's status // print deployment's status
status, done, err := statusViewer.Status(cmdNamespace, info.Name, revision) status, done, err := statusViewer.Status(info.Namespace, info.Name, revision)
if err != nil { if err != nil {
return false, err return false, err
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment