mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
Merge pull request #55044 from ahmetb/wording
Automatic merge from submit-queue. 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>. kubectl/config/rename: fix wording Using `Context %q renamed to %q.` in rename-context to be consistent with other commands like delete-context, set-context, use-context. /sig cli /release-note none
This commit is contained in:
commit
79d858660c
@ -130,6 +130,6 @@ func (o RenameContextOptions) RunRenameContext(out io.Writer) error {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Fprintf(out, "Context %q was renamed to %q.\n", o.contextName, o.newName)
|
||||
fmt.Fprintf(out, "Context %q renamed to %q.\n", o.contextName, o.newName)
|
||||
return nil
|
||||
}
|
||||
|
@ -62,7 +62,7 @@ func TestRenameContext(t *testing.T) {
|
||||
initialConfig: initialConfig,
|
||||
expectedConfig: expectedConfig,
|
||||
args: []string{currentContext, newContext},
|
||||
expectedOut: fmt.Sprintf("Context %q was renamed to %q.\n", currentContext, newContext),
|
||||
expectedOut: fmt.Sprintf("Context %q renamed to %q.\n", currentContext, newContext),
|
||||
expectedErr: "",
|
||||
}
|
||||
test.run(t)
|
||||
|
Loading…
Reference in New Issue
Block a user