kubens: fix interactive switch messages

Fixes #209.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2020-04-30 07:35:49 -07:00
parent 4425628f91
commit 956d5953c2
No known key found for this signature in database
GPG Key ID: 441833503E604E2C

View File

@ -53,8 +53,8 @@ func (op InteractiveSwitchOp) Run(_, stderr io.Writer) error {
}
name, err := switchNamespace(kc, choice)
if err != nil {
return errors.Wrap(err, "failed to switch context")
return errors.Wrap(err, "failed to switch namespace")
}
printer.Success(stderr, "Switched to context %s.", printer.SuccessColor.Sprint(name))
printer.Success(stderr, "Active namespace is %q.", printer.SuccessColor.Sprint(name))
return nil
}