Skip to content

Commit 1fe31b1

Browse files
authored
Merge pull request #2621 from RainbowMango/automated-cherry-pick-of-#2608-upstream-release-1.3
Automated cherry pick of #2608: Modify the wrong noun for karmadactl
2 parents 51a958d + d915042 commit 1fe31b1

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

hack/post-run-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ kubectl apply -f - -n kube-system
3333
kubectl config use-context "${KARMADA_APISERVER}"
3434
kubectl delete ResourceInterpreterWebhookConfiguration examples
3535

36-
# delete interpreter example workload CRD in karamada-apiserver and member clusters
36+
# delete interpreter example workload CRD in karmada-apiserver and member clusters
3737
kubectl delete -f "${REPO_ROOT}/examples/customresourceinterpreter/apis/workload.example.io_workloads.yaml"
3838
export KUBECONFIG="${MEMBER_CLUSTER_KUBECONFIG}"
3939
kubectl config use-context "${MEMBER_CLUSTER_1_NAME}"

hack/pre-run-e2e.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ sed -i'' -e "s/{{karmada-interpreter-webhook-example-svc-address}}/${interpreter
7171
util::deploy_webhook_configuration "${ROOT_CA_FILE}" "${REPO_ROOT}/examples/customresourceinterpreter/webhook-configuration-temp.yaml"
7272
rm -rf "${REPO_ROOT}/examples/customresourceinterpreter/webhook-configuration-temp.yaml"
7373

74-
# install interpreter example workload CRD in karamada-apiserver and member clusters
74+
# install interpreter example workload CRD in karmada-apiserver and member clusters
7575
kubectl apply -f "${REPO_ROOT}/examples/customresourceinterpreter/apis/workload.example.io_workloads.yaml"
7676
export KUBECONFIG="${MEMBER_CLUSTER_KUBECONFIG}"
7777
kubectl config use-context "${MEMBER_CLUSTER_1_NAME}"

pkg/karmadactl/join.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var (
2323
joinLong = `Join registers a cluster to control plane.`
2424

2525
joinExample = templates.Examples(`
26-
# Join cluster into karamada control plane, if '--cluster-context' not specified, take the cluster name as the context
26+
# Join cluster into karmada control plane, if '--cluster-context' not specified, take the cluster name as the context
2727
%[1]s join CLUSTER_NAME --cluster-kubeconfig=<KUBECONFIG>`)
2828
)
2929

pkg/karmadactl/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var (
4949
registerLong = `Register a cluster to Karmada control plane with PULL mode.`
5050

5151
registerExample = templates.Examples(`
52-
# Register cluster into karamada control plane with PULL mode.
52+
# Register cluster into karmada control plane with PULL mode.
5353
# If '--cluster-name' isn't specified, the cluster of current-context will be used by default.
5454
%[1]s register [karmada-apiserver-endpoint] --cluster-name=<CLUSTER_NAME> --token=<TOKEN> --discovery-token-ca-cert-hash=<CA-CERT-HASH>
5555

pkg/karmadactl/unjoin.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ var (
2525
unjoinShort = `Remove the registration of a cluster from control plane`
2626
unjoinLong = `Unjoin removes the registration of a cluster from control plane.`
2727
unjoinExample = templates.Examples(`
28-
# Unjoin cluster from karamada control plane, but not to remove resources created by karmada in the unjoining cluster
28+
# Unjoin cluster from karmada control plane, but not to remove resources created by karmada in the unjoining cluster
2929
%[1]s unjoin CLUSTER_NAME
3030
31-
# Unjoin cluster from karamada control plane and attempt to remove resources created by karmada in the unjoining cluster
31+
# Unjoin cluster from karmada control plane and attempt to remove resources created by karmada in the unjoining cluster
3232
%[1]s unjoin CLUSTER_NAME --cluster-kubeconfig=<KUBECONFIG>
3333
34-
# Unjoin cluster from karamada control plane with timeout
34+
# Unjoin cluster from karmada control plane with timeout
3535
%[1]s unjoin CLUSTER_NAME --cluster-kubeconfig=<KUBECONFIG> --wait 2m`)
3636
)
3737

0 commit comments

Comments
 (0)