mirror of
https://github.com/ahmetb/kubectx.git
synced 2025-07-15 16:02:07 +00:00
kubens: fix interactive switch messages
Fixes #209. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
parent
4425628f91
commit
956d5953c2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user