bug(cli):fix kubectl rollout status not recoginze resource namespace

This commit is contained in:
zhengjiajin 2017-11-14 11:45:14 +08:00
parent 73d1b38604
commit 0fab7c1bec

View File

@ -124,7 +124,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
} }
@ -149,7 +149,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
} }