mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
commit
948a98b2c1
@ -25,7 +25,7 @@ kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}'
|
|||||||
|
|
||||||
```
|
```
|
||||||
-h, --help=false: help for patch
|
-h, --help=false: help for patch
|
||||||
-p, --patch="": The patch to be appied to the resource JSON file.
|
-p, --patch="": The patch to be applied to the resource JSON file.
|
||||||
```
|
```
|
||||||
|
|
||||||
### Options inherited from parent commands
|
### Options inherited from parent commands
|
||||||
@ -60,6 +60,6 @@ kubectl patch node k8s-node-1 -p '{"spec":{"unschedulable":true}}'
|
|||||||
### SEE ALSO
|
### SEE ALSO
|
||||||
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
* [kubectl](kubectl.md) - kubectl controls the Kubernetes cluster manager
|
||||||
|
|
||||||
###### Auto generated by spf13/cobra at 2015-07-13 08:39:23.073652382 +0000 UTC
|
###### Auto generated by spf13/cobra at 2015-07-13 16:38:17.586247279 +0000 UTC
|
||||||
|
|
||||||
[]()
|
[]()
|
||||||
|
@ -26,7 +26,7 @@ JSON and YAML formats are accepted.
|
|||||||
|
|
||||||
.PP
|
.PP
|
||||||
\fB\-p\fP, \fB\-\-patch\fP=""
|
\fB\-p\fP, \fB\-\-patch\fP=""
|
||||||
The patch to be appied to the resource JSON file.
|
The patch to be applied to the resource JSON file.
|
||||||
|
|
||||||
|
|
||||||
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
.SH OPTIONS INHERITED FROM PARENT COMMANDS
|
||||||
|
@ -47,7 +47,7 @@ func NewCmdPatch(f *cmdutil.Factory, out io.Writer) *cobra.Command {
|
|||||||
cmdutil.CheckCustomErr("Patch failed", err)
|
cmdutil.CheckCustomErr("Patch failed", err)
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
cmd.Flags().StringP("patch", "p", "", "The patch to be appied to the resource JSON file.")
|
cmd.Flags().StringP("patch", "p", "", "The patch to be applied to the resource JSON file.")
|
||||||
cmd.MarkFlagRequired("patch")
|
cmd.MarkFlagRequired("patch")
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user