Merge pull request #2205 from my-git9/apply2

fix karmadactl apply help
This commit is contained in:
karmada-bot 2022-08-02 19:21:58 +08:00 committed by GitHub
commit 65757bf124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -50,7 +50,7 @@ var (
Alpha Disclaimer: the --prune functionality is not yet complete. Do not use unless you are aware of what the current state is. See https://issues.k8s.io/34274.
Note: It implements the function of 'kubectl apply' by default.
If you want to propagate them into member clusters, please use 'kubectl apply --all-clusters'.`)
If you want to propagate them into member clusters, please use %[1]s apply --all-clusters'.`)
applyExample = templates.Examples(`
# Apply the configuration without propagation into member clusters. It acts as 'kubectl apply'.
@ -60,7 +60,11 @@ var (
%[1]s apply -f manifest.yaml --cluster member1,member2
# Apply resources from a directory and propagate them into all member clusters.
%[1]s apply -f dir/ --all-clusters`)
%[1]s apply -f dir/ --all-clusters
# Apply resources from a directory containing kustomization.yaml - e.g.
# dir/kustomization.yaml, and propagate them into all member clusters
%[1]s apply -k dir/ --all-clusters`)
)
// NewCmdApply creates the `apply` command