Skip to content

Commit 646145f

Browse files
authored
Merge pull request kubernetes#74125 from tuanvcw/fixing_typo
Fix many typos in both code and comments
2 parents 222dd0a + c747b7f commit 646145f

29 files changed

+47
-47
lines changed

test/e2e/apps/rc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ func TestReplicationControllerServeImageOrFail(f *framework.Framework, test stri
114114

115115
// Create a replication controller for a service
116116
// that serves its hostname.
117-
// The source for the Docker containter kubernetes/serve_hostname is
117+
// The source for the Docker container kubernetes/serve_hostname is
118118
// in contrib/for-demos/serve_hostname
119119
By(fmt.Sprintf("Creating replication controller %s", name))
120120
newRC := newRC(name, replicas, map[string]string{"name": name}, name, image)

test/e2e/common/downwardapi_volume.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
4343
/*
4444
Release : v1.9
4545
Testname: DownwardAPI volume, pod name
46-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the Pod name. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
46+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the Pod name. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
4747
*/
4848
framework.ConformanceIt("should provide podname only [NodeConformance]", func() {
4949
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -73,7 +73,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
7373
/*
7474
Release : v1.9
7575
Testname: DownwardAPI volume, file mode 0400
76-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the Pod name with the file mode set to -r--------. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
76+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the Pod name with the file mode set to -r--------. The container runtime MUST be able to access Pod name from the specified path on the mounted volume.
7777
This test is marked LinuxOnly since Windows does not support setting specific file permissions.
7878
*/
7979
framework.ConformanceIt("should set mode on item file [LinuxOnly] [NodeConformance]", func() {
@@ -118,7 +118,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
118118
/*
119119
Release : v1.9
120120
Testname: DownwardAPI volume, update label
121-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains list of items for each of the Pod labels. The container runtime MUST be able to access Pod labels from the specified path on the mounted volume. Update the labels by adding a new label to the running Pod. The new label MUST be available from the mounted volume.
121+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains list of items for each of the Pod labels. The container runtime MUST be able to access Pod labels from the specified path on the mounted volume. Update the labels by adding a new label to the running Pod. The new label MUST be available from the mounted volume.
122122
*/
123123
framework.ConformanceIt("should update labels on modification [NodeConformance]", func() {
124124
labels := map[string]string{}
@@ -150,7 +150,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
150150
/*
151151
Release : v1.9
152152
Testname: DownwardAPI volume, update annotations
153-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains list of items for each of the Pod annotations. The container runtime MUST be able to access Pod annotations from the specified path on the mounted volume. Update the annotations by adding a new annotation to the running Pod. The new annotation MUST be available from the mounted volume.
153+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains list of items for each of the Pod annotations. The container runtime MUST be able to access Pod annotations from the specified path on the mounted volume. Update the annotations by adding a new annotation to the running Pod. The new annotation MUST be available from the mounted volume.
154154
*/
155155
framework.ConformanceIt("should update annotations on modification [NodeConformance]", func() {
156156
annotations := map[string]string{}
@@ -184,7 +184,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
184184
/*
185185
Release : v1.9
186186
Testname: DownwardAPI volume, CPU limits
187-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU limits. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume.
187+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the CPU limits. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume.
188188
*/
189189
framework.ConformanceIt("should provide container's cpu limit [NodeConformance]", func() {
190190
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -198,7 +198,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
198198
/*
199199
Release : v1.9
200200
Testname: DownwardAPI volume, memory limits
201-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory limits. The container runtime MUST be able to access memory limits from the specified path on the mounted volume.
201+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the memory limits. The container runtime MUST be able to access memory limits from the specified path on the mounted volume.
202202
*/
203203
framework.ConformanceIt("should provide container's memory limit [NodeConformance]", func() {
204204
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -212,7 +212,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
212212
/*
213213
Release : v1.9
214214
Testname: DownwardAPI volume, CPU request
215-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU request. The container runtime MUST be able to access CPU request from the specified path on the mounted volume.
215+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the CPU request. The container runtime MUST be able to access CPU request from the specified path on the mounted volume.
216216
*/
217217
framework.ConformanceIt("should provide container's cpu request [NodeConformance]", func() {
218218
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -226,7 +226,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
226226
/*
227227
Release : v1.9
228228
Testname: DownwardAPI volume, memory request
229-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory request. The container runtime MUST be able to access memory request from the specified path on the mounted volume.
229+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the memory request. The container runtime MUST be able to access memory request from the specified path on the mounted volume.
230230
*/
231231
framework.ConformanceIt("should provide container's memory request [NodeConformance]", func() {
232232
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -240,7 +240,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
240240
/*
241241
Release : v1.9
242242
Testname: DownwardAPI volume, CPU limit, default node allocatable
243-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the CPU limits. CPU limits is not specified for the container. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume and the value MUST be default node allocatable.
243+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the CPU limits. CPU limits is not specified for the container. The container runtime MUST be able to access CPU limits from the specified path on the mounted volume and the value MUST be default node allocatable.
244244
*/
245245
framework.ConformanceIt("should provide node allocatable (cpu) as default cpu limit if the limit is not set [NodeConformance]", func() {
246246
podName := "downwardapi-volume-" + string(uuid.NewUUID())
@@ -252,7 +252,7 @@ var _ = Describe("[sig-storage] Downward API volume", func() {
252252
/*
253253
Release : v1.9
254254
Testname: DownwardAPI volume, memory limit, default node allocatable
255-
Description: A Pod is configured with DownwardAPIVolumeSource and DownwartAPIVolumeFiles contains a item for the memory limits. memory limits is not specified for the container. The container runtime MUST be able to access memory limits from the specified path on the mounted volume and the value MUST be default node allocatable.
255+
Description: A Pod is configured with DownwardAPIVolumeSource and DownwardAPIVolumeFiles contains a item for the memory limits. memory limits is not specified for the container. The container runtime MUST be able to access memory limits from the specified path on the mounted volume and the value MUST be default node allocatable.
256256
*/
257257
framework.ConformanceIt("should provide node allocatable (memory) as default memory limit if the limit is not set [NodeConformance]", func() {
258258
podName := "downwardapi-volume-" + string(uuid.NewUUID())

test/e2e/common/projected_secret.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ var _ = Describe("[sig-storage] Projected secret", func() {
404404
})
405405

406406
//The secret is in pending during volume creation until the secret objects are available
407-
//or until mount the secret volume times out. There is no secret object defined for the pod, so it should return timout exception unless it is marked optional.
407+
//or until mount the secret volume times out. There is no secret object defined for the pod, so it should return timeout exception unless it is marked optional.
408408
//Slow (~5 mins)
409409
It("Should fail non-optional pod creation due to secret object does not exist [Slow]", func() {
410410
volumeMountPath := "/etc/projected-secret-volumes"

test/e2e/framework/framework.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ type PodStateVerification struct {
716716

717717
// Optional: only pods passing this function will pass the filter
718718
// Verify a pod.
719-
// As an optimization, in addition to specfying filter (boolean),
719+
// As an optimization, in addition to specifying filter (boolean),
720720
// this function allows specifying an error as well.
721721
// The error indicates that the polling of the pod spectrum should stop.
722722
Verify func(v1.Pod) (bool, error)
@@ -856,7 +856,7 @@ func (cl *ClusterVerification) WaitForOrFail(atLeast int, timeout time.Duration)
856856
}
857857
}
858858

859-
// ForEach runs a function against every verifiable pod. Be warned that this doesn't wait for "n" pods to verifiy,
859+
// ForEach runs a function against every verifiable pod. Be warned that this doesn't wait for "n" pods to verify,
860860
// so it may return very quickly if you have strict pod state requirements.
861861
//
862862
// For example, if you require at least 5 pods to be running before your test will pass,

test/e2e/framework/ingress/ingress_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ func (j *TestJig) VerifyURL(route, host string, iterations int, interval time.Du
718718
framework.Logf(b)
719719
return err
720720
}
721-
j.Logger.Infof("Verfied %v with host %v %d times, sleeping for %v", route, host, i, interval)
721+
j.Logger.Infof("Verified %v with host %v %d times, sleeping for %v", route, host, i, interval)
722722
time.Sleep(interval)
723723
}
724724
return nil

test/e2e/framework/jobs_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func WaitForAllJobPodsRunning(c clientset.Interface, ns, jobName string, paralle
182182
})
183183
}
184184

185-
// WaitForJobComplete uses c to wait for compeletions to complete for the Job jobName in namespace ns.
185+
// WaitForJobComplete uses c to wait for completions to complete for the Job jobName in namespace ns.
186186
func WaitForJobComplete(c clientset.Interface, ns, jobName string, completions int32) error {
187187
return wait.Poll(Poll, JobTimeout, func() (bool, error) {
188188
curr, err := c.BatchV1().Jobs(ns).Get(jobName, metav1.GetOptions{})

test/e2e/framework/rc_util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func RcByNamePort(name string, replicas int32, image string, port int, protocol
4545
}, gracePeriod)
4646
}
4747

48-
// RcByNameContainer returns a ReplicationControoler with specified name and container
48+
// RcByNameContainer returns a ReplicationController with specified name and container
4949
func RcByNameContainer(name string, replicas int32, image string, labels map[string]string, c v1.Container,
5050
gracePeriod *int64) *v1.ReplicationController {
5151

test/e2e/network/ingress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ var _ = SIGDescribe("Loadbalancing: L7", func() {
146146
// TODO: uncomment the restart test once we have a way to synchronize
147147
// and know that the controller has resumed watching. If we delete
148148
// the ingress before the controller is ready we will leak.
149-
// By("restaring glbc")
149+
// By("restarting glbc")
150150
// restarter := NewRestartConfig(
151151
// framework.GetMasterHost(), "glbc", glbcHealthzPort, restartPollInterval, restartTimeout)
152152
// restarter.restart()

test/e2e/network/ingress_scale.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var _ = SIGDescribe("Loadbalancing: L7 Scalability", func() {
4444

4545
scaleFramework = scale.NewIngressScaleFramework(f.ClientSet, ns, framework.TestContext.CloudConfig)
4646
if err := scaleFramework.PrepareScaleTest(); err != nil {
47-
framework.Failf("Unexpected error while preraring ingress scale test: %v", err)
47+
framework.Failf("Unexpected error while preparing ingress scale test: %v", err)
4848
}
4949
})
5050

test/e2e/network/service_latency.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ var _ = SIGDescribe("Service endpoints latency", func() {
4949
/*
5050
Release : v1.9
5151
Testname: Service endpoint latency, thresholds
52-
Description: Run 100 iterations of create service with the Pod running the pause image, measure the time it takes for creating the service and the endpoint with the service name is available. These durations are captured for 100 iterations, then the durations are sorted to compue 50th, 90th and 99th percentile. The single server latency MUST not exceed liberally set thresholds of 20s for 50th percentile and 50s for the 90th percentile.
52+
Description: Run 100 iterations of create service with the Pod running the pause image, measure the time it takes for creating the service and the endpoint with the service name is available. These durations are captured for 100 iterations, then the durations are sorted to compute 50th, 90th and 99th percentile. The single server latency MUST not exceed liberally set thresholds of 20s for 50th percentile and 50s for the 90th percentile.
5353
*/
5454
framework.ConformanceIt("should not be very high ", func() {
5555
const (

0 commit comments

Comments
 (0)