@@ -95,8 +95,8 @@ const (
95
95
busyboxPodSelector = "app=busybox1"
96
96
busyboxPodName = "busybox1"
97
97
kubeCtlManifestPath = "test/e2e/testing-manifests/kubectl"
98
- agnhostControllerFilename = "agnhost-master -controller.json.in"
99
- agnhostServiceFilename = "agnhost-master -service.json"
98
+ agnhostControllerFilename = "agnhost-primary -controller.json.in"
99
+ agnhostServiceFilename = "agnhost-primary -service.json"
100
100
httpdDeployment1Filename = "httpd-deployment1.yaml.in"
101
101
httpdDeployment2Filename = "httpd-deployment2.yaml.in"
102
102
httpdDeployment3Filename = "httpd-deployment3.yaml.in"
@@ -344,10 +344,10 @@ var _ = SIGDescribe("Kubectl client", func() {
344
344
guestbookRoot := "test/e2e/testing-manifests/guestbook"
345
345
for _ , gbAppFile := range []string {
346
346
"agnhost-replica-service.yaml" ,
347
- "agnhost-master -service.yaml" ,
347
+ "agnhost-primary -service.yaml" ,
348
348
"frontend-service.yaml" ,
349
349
"frontend-deployment.yaml.in" ,
350
- "agnhost-master -deployment.yaml.in" ,
350
+ "agnhost-primary -deployment.yaml.in" ,
351
351
"agnhost-replica-deployment.yaml.in" ,
352
352
} {
353
353
contents := commonutils .SubstituteImageName (string (e2etestfiles .ReadOrDie (filepath .Join (guestbookRoot , gbAppFile ))))
@@ -809,13 +809,13 @@ metadata:
809
809
framework .RunKubectlOrDieInput (ns , string (serviceJSON [:]), "create" , "-f" , "-" , nsFlag )
810
810
811
811
ginkgo .By ("getting the original port" )
812
- originalNodePort := framework .RunKubectlOrDie (ns , "get" , "service" , "agnhost-master " , nsFlag , "-o" , "jsonpath={.spec.ports[0].port}" )
812
+ originalNodePort := framework .RunKubectlOrDie (ns , "get" , "service" , "agnhost-primary " , nsFlag , "-o" , "jsonpath={.spec.ports[0].port}" )
813
813
814
814
ginkgo .By ("applying the same configuration" )
815
815
framework .RunKubectlOrDieInput (ns , string (serviceJSON [:]), "apply" , "-f" , "-" , nsFlag )
816
816
817
817
ginkgo .By ("getting the port after applying configuration" )
818
- currentNodePort := framework .RunKubectlOrDie (ns , "get" , "service" , "agnhost-master " , nsFlag , "-o" , "jsonpath={.spec.ports[0].port}" )
818
+ currentNodePort := framework .RunKubectlOrDie (ns , "get" , "service" , "agnhost-primary " , nsFlag , "-o" , "jsonpath={.spec.ports[0].port}" )
819
819
820
820
ginkgo .By ("checking the result" )
821
821
if originalNodePort != currentNodePort {
@@ -1099,22 +1099,22 @@ metadata:
1099
1099
framework .RunKubectlOrDieInput (ns , controllerJSON , "create" , "-f" , "-" , nsFlag )
1100
1100
framework .RunKubectlOrDieInput (ns , string (serviceJSON [:]), "create" , "-f" , "-" , nsFlag )
1101
1101
1102
- ginkgo .By ("Waiting for Agnhost master to start." )
1102
+ ginkgo .By ("Waiting for Agnhost primary to start." )
1103
1103
waitForOrFailWithDebug (1 )
1104
1104
1105
1105
// Pod
1106
1106
forEachPod (func (pod v1.Pod ) {
1107
1107
output := framework .RunKubectlOrDie (ns , "describe" , "pod" , pod .Name , nsFlag )
1108
1108
requiredStrings := [][]string {
1109
- {"Name:" , "agnhost-master -" },
1109
+ {"Name:" , "agnhost-primary -" },
1110
1110
{"Namespace:" , ns },
1111
1111
{"Node:" },
1112
1112
{"Labels:" , "app=agnhost" },
1113
- {"role=master " },
1113
+ {"role=primary " },
1114
1114
{"Annotations:" },
1115
1115
{"Status:" , "Running" },
1116
1116
{"IP:" },
1117
- {"Controlled By:" , "ReplicationController/agnhost-master " },
1117
+ {"Controlled By:" , "ReplicationController/agnhost-primary " },
1118
1118
{"Image:" , agnhostImage },
1119
1119
{"State:" , "Running" },
1120
1120
{"QoS Class:" , "BestEffort" },
@@ -1124,28 +1124,28 @@ metadata:
1124
1124
1125
1125
// Rc
1126
1126
requiredStrings := [][]string {
1127
- {"Name:" , "agnhost-master " },
1127
+ {"Name:" , "agnhost-primary " },
1128
1128
{"Namespace:" , ns },
1129
- {"Selector:" , "app=agnhost,role=master " },
1129
+ {"Selector:" , "app=agnhost,role=primary " },
1130
1130
{"Labels:" , "app=agnhost" },
1131
- {"role=master " },
1131
+ {"role=primary " },
1132
1132
{"Annotations:" },
1133
1133
{"Replicas:" , "1 current" , "1 desired" },
1134
1134
{"Pods Status:" , "1 Running" , "0 Waiting" , "0 Succeeded" , "0 Failed" },
1135
1135
{"Pod Template:" },
1136
1136
{"Image:" , agnhostImage },
1137
1137
{"Events:" }}
1138
- checkKubectlOutputWithRetry (ns , requiredStrings , "describe" , "rc" , "agnhost-master " , nsFlag )
1138
+ checkKubectlOutputWithRetry (ns , requiredStrings , "describe" , "rc" , "agnhost-primary " , nsFlag )
1139
1139
1140
1140
// Service
1141
- output := framework .RunKubectlOrDie (ns , "describe" , "service" , "agnhost-master " , nsFlag )
1141
+ output := framework .RunKubectlOrDie (ns , "describe" , "service" , "agnhost-primary " , nsFlag )
1142
1142
requiredStrings = [][]string {
1143
- {"Name:" , "agnhost-master " },
1143
+ {"Name:" , "agnhost-primary " },
1144
1144
{"Namespace:" , ns },
1145
1145
{"Labels:" , "app=agnhost" },
1146
- {"role=master " },
1146
+ {"role=primary " },
1147
1147
{"Annotations:" },
1148
- {"Selector:" , "app=agnhost" , "role=master " },
1148
+ {"Selector:" , "app=agnhost" , "role=primary " },
1149
1149
{"Type:" , "ClusterIP" },
1150
1150
{"IP:" },
1151
1151
{"Port:" , "<unset>" , "6379/TCP" },
@@ -1244,11 +1244,11 @@ metadata:
1244
1244
framework .RunKubectlOrDieInput (ns , controllerJSON , "create" , "-f" , "-" , nsFlag )
1245
1245
1246
1246
// It may take a while for the pods to get registered in some cases, wait to be sure.
1247
- ginkgo .By ("Waiting for Agnhost master to start." )
1247
+ ginkgo .By ("Waiting for Agnhost primary to start." )
1248
1248
waitForOrFailWithDebug (1 )
1249
1249
forEachPod (func (pod v1.Pod ) {
1250
- framework .Logf ("wait on agnhost-master startup in %v " , ns )
1251
- framework .LookForStringInLog (ns , pod .Name , "agnhost-master " , "Paused" , framework .PodStartTimeout )
1250
+ framework .Logf ("wait on agnhost-primary startup in %v " , ns )
1251
+ framework .LookForStringInLog (ns , pod .Name , "agnhost-primary " , "Paused" , framework .PodStartTimeout )
1252
1252
})
1253
1253
validateService := func (name string , servicePort int , timeout time.Duration ) {
1254
1254
err := wait .Poll (framework .Poll , timeout , func () (bool , error ) {
@@ -1299,7 +1299,7 @@ metadata:
1299
1299
}
1300
1300
1301
1301
ginkgo .By ("exposing RC" )
1302
- framework .RunKubectlOrDie (ns , "expose" , "rc" , "agnhost-master " , "--name=rm2" , "--port=1234" , fmt .Sprintf ("--target-port=%d" , agnhostPort ), nsFlag )
1302
+ framework .RunKubectlOrDie (ns , "expose" , "rc" , "agnhost-primary " , "--name=rm2" , "--port=1234" , fmt .Sprintf ("--target-port=%d" , agnhostPort ), nsFlag )
1303
1303
e2enetwork .WaitForService (c , ns , "rm2" , true , framework .Poll , framework .ServiceStartTimeout )
1304
1304
validateService ("rm2" , 1234 , framework .ServiceStartTimeout )
1305
1305
@@ -1481,7 +1481,7 @@ metadata:
1481
1481
nsFlag := fmt .Sprintf ("--namespace=%v" , ns )
1482
1482
ginkgo .By ("creating Agnhost RC" )
1483
1483
framework .RunKubectlOrDieInput (ns , controllerJSON , "create" , "-f" , "-" , nsFlag )
1484
- ginkgo .By ("Waiting for Agnhost master to start." )
1484
+ ginkgo .By ("Waiting for Agnhost primary to start." )
1485
1485
waitForOrFailWithDebug (1 )
1486
1486
ginkgo .By ("patching all pods" )
1487
1487
forEachPod (func (pod v1.Pod ) {
@@ -2062,7 +2062,7 @@ func forEachReplicationController(c clientset.Interface, ns, selectorKey, select
2062
2062
}
2063
2063
2064
2064
func validateReplicationControllerConfiguration (rc v1.ReplicationController ) {
2065
- if rc .Name == "agnhost-master " {
2065
+ if rc .Name == "agnhost-primary " {
2066
2066
if _ , ok := rc .Annotations [v1 .LastAppliedConfigAnnotation ]; ! ok {
2067
2067
framework .Failf ("Annotation not found in modified configuration:\n %v\n " , rc )
2068
2068
}
0 commit comments