mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
kubeadm: add the --experimental-patches flag in cmd/options
This commit is contained in:
parent
7ddd966ed2
commit
a8b31556c8
@ -95,3 +95,15 @@ func AddKustomizePodsFlag(fs *pflag.FlagSet, kustomizeDir *string) {
|
||||
fs.StringVarP(kustomizeDir, Kustomize, "k", *kustomizeDir, "The path where kustomize patches for static pod manifests are stored.")
|
||||
fs.MarkDeprecated(Kustomize, fmt.Sprintf("This flag is deprecated and will be removed in a future version. Please use %s instead.", Patches))
|
||||
}
|
||||
|
||||
// AddPatchesFlag adds the --patches flag to the given flagset
|
||||
func AddPatchesFlag(fs *pflag.FlagSet, patchesDir *string) {
|
||||
fs.StringVar(patchesDir, Patches, *patchesDir, `Path to a directory that contains files named `+
|
||||
`"target[suffix][+patchtype].extension". For example, `+
|
||||
`"kube-apiserver0+merge.yaml" or just "etcd.json". `+
|
||||
`"patchtype" can be one of "strategic", "merge" or "json" and they match the patch formats `+
|
||||
`supported by kubectl. The default "patchtype" is "strategic". "extension" must be either `+
|
||||
`"json" or "yaml". "suffix" is an optional string that can be used to determine `+
|
||||
`which patches are applied first alpha-numerically.`,
|
||||
)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user