mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Merge pull request #57112 from aramase/kubectl-fixes
Automatic merge from submit-queue (batch tested with PRs 58025, 57112, 57879, 57571, 58062). 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>. fix typos in kubectl pkg **What this PR does / why we need it**: **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
ba57ff9875
@ -135,7 +135,7 @@ func printService(out io.Writer, name, link string) {
|
|||||||
ct.ChangeColor(ct.Green, false, ct.None, false)
|
ct.ChangeColor(ct.Green, false, ct.None, false)
|
||||||
fmt.Fprint(out, name)
|
fmt.Fprint(out, name)
|
||||||
ct.ResetColor()
|
ct.ResetColor()
|
||||||
fmt.Fprintf(out, " is running at ")
|
fmt.Fprint(out, " is running at ")
|
||||||
ct.ChangeColor(ct.Yellow, false, ct.None, false)
|
ct.ChangeColor(ct.Yellow, false, ct.None, false)
|
||||||
fmt.Fprint(out, link)
|
fmt.Fprint(out, link)
|
||||||
ct.ResetColor()
|
ct.ResetColor()
|
||||||
|
@ -46,7 +46,7 @@ const defaultBoilerPlate = `
|
|||||||
var (
|
var (
|
||||||
completion_long = templates.LongDesc(i18n.T(`
|
completion_long = templates.LongDesc(i18n.T(`
|
||||||
Output shell completion code for the specified shell (bash or zsh).
|
Output shell completion code for the specified shell (bash or zsh).
|
||||||
The shell code must be evalutated to provide interactive
|
The shell code must be evaluated to provide interactive
|
||||||
completion of kubectl commands. This can be done by sourcing it from
|
completion of kubectl commands. This can be done by sourcing it from
|
||||||
the .bash_profile.
|
the .bash_profile.
|
||||||
|
|
||||||
|
@ -99,7 +99,7 @@ func NewCmdExposeService(f cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
cmd.Flags().String("protocol", "", i18n.T("The network protocol for the service to be created. Default is 'TCP'."))
|
cmd.Flags().String("protocol", "", i18n.T("The network protocol for the service to be created. Default is 'TCP'."))
|
||||||
cmd.Flags().String("port", "", i18n.T("The port that the service should serve on. Copied from the resource being exposed, if unspecified"))
|
cmd.Flags().String("port", "", i18n.T("The port that the service should serve on. Copied from the resource being exposed, if unspecified"))
|
||||||
cmd.Flags().String("type", "", i18n.T("Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'."))
|
cmd.Flags().String("type", "", i18n.T("Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is 'ClusterIP'."))
|
||||||
cmd.Flags().String("load-balancer-ip", "", i18n.T("IP to assign to the Load Balancer. If empty, an ephemeral IP will be created and used (cloud-provider specific)."))
|
cmd.Flags().String("load-balancer-ip", "", i18n.T("IP to assign to the LoadBalancer. If empty, an ephemeral IP will be created and used (cloud-provider specific)."))
|
||||||
cmd.Flags().String("selector", "", i18n.T("A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.)"))
|
cmd.Flags().String("selector", "", i18n.T("A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.)"))
|
||||||
cmd.Flags().StringP("labels", "l", "", "Labels to apply to the service created by this call.")
|
cmd.Flags().StringP("labels", "l", "", "Labels to apply to the service created by this call.")
|
||||||
cmd.Flags().String("container-port", "", i18n.T("Synonym for --target-port"))
|
cmd.Flags().String("container-port", "", i18n.T("Synonym for --target-port"))
|
||||||
|
Loading…
Reference in New Issue
Block a user