Skip to content

Commit bf9354d

Browse files
authored
Merge pull request kubernetes#95202 from rikatz/remove-master-clusterinfo
Change kubectl clusterinfo to non offensive words
2 parents 3005b6d + ab12934 commit bf9354d

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo/clusterinfo.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ import (
3838

3939
var (
4040
longDescr = templates.LongDesc(i18n.T(`
41-
Display addresses of the master and services with label kubernetes.io/cluster-service=true
41+
Display addresses of the control plane and services with label kubernetes.io/cluster-service=true
4242
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.`))
4343

4444
clusterinfoExample = templates.Examples(i18n.T(`
45-
# Print the address of the master and cluster services
45+
# Print the address of the control plane and cluster services
4646
kubectl cluster-info`))
4747
)
4848

@@ -103,7 +103,7 @@ func (o *ClusterInfoOptions) Run() error {
103103
if err != nil {
104104
return err
105105
}
106-
printService(o.Out, "Kubernetes master", o.Client.Host)
106+
printService(o.Out, "Kubernetes control plane", o.Client.Host)
107107

108108
services := r.Object.(*corev1.ServiceList).Items
109109
for _, service := range services {

test/conformance/testdata/conformance.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,9 +1391,9 @@
13911391
file: test/e2e/kubectl/kubectl.go
13921392
- testname: Kubectl, cluster info
13931393
codename: '[sig-cli] Kubectl client Kubectl cluster-info should check if Kubernetes
1394-
master services is included in cluster-info [Conformance]'
1394+
control plane services is included in cluster-info [Conformance]'
13951395
description: Call kubectl to get cluster-info, output MUST contain cluster-info
1396-
returned and Kubernetes Master SHOULD be running.
1396+
returned and Kubernetes control plane SHOULD be running.
13971397
release: v1.9
13981398
file: test/e2e/kubectl/kubectl.go
13991399
- testname: Kubectl, describe pod or rc

test/e2e/kubectl/kubectl.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,13 +1069,13 @@ metadata:
10691069
/*
10701070
Release: v1.9
10711071
Testname: Kubectl, cluster info
1072-
Description: Call kubectl to get cluster-info, output MUST contain cluster-info returned and Kubernetes Master SHOULD be running.
1072+
Description: Call kubectl to get cluster-info, output MUST contain cluster-info returned and Kubernetes control plane SHOULD be running.
10731073
*/
1074-
framework.ConformanceIt("should check if Kubernetes master services is included in cluster-info ", func() {
1074+
framework.ConformanceIt("should check if Kubernetes control plane services is included in cluster-info ", func() {
10751075
ginkgo.By("validating cluster-info")
10761076
output := framework.RunKubectlOrDie(ns, "cluster-info")
10771077
// Can't check exact strings due to terminal control commands (colors)
1078-
requiredItems := []string{"Kubernetes master", "is running at"}
1078+
requiredItems := []string{"Kubernetes control plane", "is running at"}
10791079
for _, item := range requiredItems {
10801080
if !strings.Contains(output, item) {
10811081
framework.Failf("Missing %s in kubectl cluster-info", item)

0 commit comments

Comments
 (0)