Skip to content

Commit bb03f58

Browse files
committed
Correct misspelled words
1 parent 115d07e commit bb03f58

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

pkg/operator/metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func NewMetricsController(informer imageinformers.ImageStreamInformer) *MetricsC
3232
}
3333
}
3434

35-
// report gathers all metrics reported by this operator and calls approprate function in the
35+
// report gathers all metrics reported by this operator and calls appropriate function in the
3636
// metrics package to report the current values.
3737
func (m *MetricsController) report(_ context.Context) {
3838
imgstreams, err := m.lister.List(labels.Everything())

pkg/resource/dependencies.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (d dependencies) Checksum(configMapLister corelisters.ConfigMapNamespaceLis
4343
cm, err := configMapLister.Get(name)
4444
if errors.IsNotFound(err) {
4545
// We may have optional dependencies.
46-
klog.Infof("missing the deployment depencency: ConfigMap %s: %s", name, err)
46+
klog.Infof("missing the deployment dependency: ConfigMap %s: %s", name, err)
4747
continue
4848
} else if err != nil {
4949
return "", err

pkg/resource/strategy/override_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestOverride(t *testing.T) {
4545
t.Error("object is expected to be changed, but changed=false")
4646
}
4747
if o.ResourceVersion != "12345" {
48-
t.Errorf("resouce version is changed: %v", o.ResourceVersion)
48+
t.Errorf("resource version is changed: %v", o.ResourceVersion)
4949
}
5050
if val, ok := o.Annotations["hello"]; ok {
5151
t.Errorf("annotation hello: expected to be removed, got %q", val)

pkg/storage/s3/s3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ func isBucketNotFound(err interface{}) bool {
393393
// ConfigEnv configures the environment variables that will be
394394
// used in the image registry deployment, and returns an AWS credentials file
395395
// that can be used for setting up an AWS session/client.
396-
// Note: it is the callers responsiblity to make sure the returned file
396+
// Note: it is the callers responsibility to make sure the returned file
397397
// location is cleaned up after it is no longer needed.
398398
func (d *driver) ConfigEnv() (envs envvar.List, err error) {
399399
err = d.UpdateEffectiveConfig()

pkg/storage/swift/swift.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ func (d *driver) RemoveStorage(cr *imageregistryv1.Config) (bool, error) {
506506
errs[i] = fmt.Errorf("cannot delete object %v: %v", objectError[0], objectError[1])
507507
}
508508

509-
return false, fmt.Errorf("errors occured during bulk deleting of container %v objects: %v", cr.Spec.Storage.Swift.Container, k8sutilerrors.NewAggregate(errs))
509+
return false, fmt.Errorf("errors occurred during bulk deleting of container %v objects: %v", cr.Spec.Storage.Swift.Container, k8sutilerrors.NewAggregate(errs))
510510
}
511511

512512
return true, nil

pkg/storage/swift/swift_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ func TestSwiftRemoveStorageWithContentFailure(t *testing.T) {
480480
_, err := d.RemoveStorage(&installConfig)
481481

482482
th.AssertErr(t, err)
483-
th.AssertEquals(t, "errors occured during bulk deleting of container registry objects: cannot delete object obj0: Internal Error", err.Error())
483+
th.AssertEquals(t, "errors occurred during bulk deleting of container registry objects: cannot delete object obj0: Internal Error", err.Error())
484484
th.AssertEquals(t, "registry", installConfig.Status.Storage.Swift.Container)
485485
th.AssertEquals(t, true, containerContentListed)
486486
th.AssertEquals(t, false, containerContentDeleted)

pkg/storage/util/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func GenerateStorageName(listers *regopclient.StorageListers, additionalInfo ...
100100
}
101101
}
102102

103-
// Join the slice together with dashes, removing any occurence of
103+
// Join the slice together with dashes, removing any occurrence of
104104
// multiple dashes in a row as some cloud providers consider this
105105
// invalid.
106106
name := multiDashes.ReplaceAllString(strings.Join(parts, "-"), "-")

test/e2e/configuration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ func TestPodAffinityConfiguration(t *testing.T) {
225225

226226
// The operator won't become available because of affinity settings. So
227227
// instead of waiting for the operator, we'll just hope that everything is
228-
// fine and the delpoyment will eventually be created.
228+
// fine and the deployment will eventually be created.
229229
deployment, err := framework.WaitForRegistryDeployment(te.Client())
230230
if err != nil {
231231
t.Fatal(err)
@@ -534,7 +534,7 @@ func TestVersionReporting(t *testing.T) {
534534
return false, nil
535535
}
536536
if len(clusterOperatorStatus.Status.Versions) == 0 {
537-
// We should always have *some* version information in the clusteroperator once we are avaiable,
537+
// We should always have *some* version information in the clusteroperator once we are available,
538538
// so we do not retry in this scenario.
539539
t.Fatalf("Cluster operator status has no version information: %v", clusterOperatorStatus)
540540
return true, err

test/e2e/graceful_shutdown_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func TestNodeCAGracefulShutdown(t *testing.T) {
8888
// this is the log line node-ca pods print when they
8989
// gorgeously die, if we find this it means that the
9090
// pod had manage to exit properly so we can end this
91-
// test successfuly.
91+
// test successfully.
9292
if strings.HasPrefix(line, "shutting down node-ca") {
9393
return
9494
}
@@ -159,9 +159,9 @@ func TestImageRegistryGracefulShutdown(t *testing.T) {
159159
t.Fatal("pod died, no graceful message found.")
160160
}
161161
// this is the log line image registry pod prints when
162-
// it gracefuly dies, if we find this it means that the
162+
// it gracefully dies, if we find this it means that the
163163
// pod had manage to exit properly so we can end this
164-
// test successfuly.
164+
// test successfully.
165165
if strings.Contains(line, "server shutdown, bye.") {
166166
return
167167
}

test/framework/operator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func StopDeployment(te TestEnv, namespace, name string) {
6262
[]byte(`{"spec": {"replicas": 0}}`),
6363
metav1.PatchOptions{},
6464
); realErr != nil {
65-
te.Logf("failed to patch delpoyment %s/%s to zero replicas: %v", namespace, name, realErr)
65+
te.Logf("failed to patch deployment %s/%s to zero replicas: %v", namespace, name, realErr)
6666
return false, nil
6767
}
6868
return true, nil

0 commit comments

Comments
 (0)