diff --git a/pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go b/pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go index a610d38304f..d4da0e09998 100644 --- a/pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go +++ b/pkg/registry/autoscaling/horizontalpodautoscaler/storage/storage_test.go @@ -205,9 +205,9 @@ func TestUpdateStatus(t *testing.T) { t.Fatalf("Unexpected error: %v", err) } obj, err := storage.Get(ctx, "foo", &metav1.GetOptions{}) - autosclaerOut := obj.(*autoscaling.HorizontalPodAutoscaler) + autoscalerOut := obj.(*autoscaling.HorizontalPodAutoscaler) // only compare the meaningful update b/c we can't compare due to metadata - if !apiequality.Semantic.DeepEqual(autoscalerIn.Status, autosclaerOut.Status) { - t.Errorf("unexpected object: %s", diff.ObjectDiff(autoscalerIn, autosclaerOut)) + if !apiequality.Semantic.DeepEqual(autoscalerIn.Status, autoscalerOut.Status) { + t.Errorf("unexpected object: %s", diff.ObjectDiff(autoscalerIn, autoscalerOut)) } } diff --git a/pkg/registry/core/service/ipallocator/controller/repair_test.go b/pkg/registry/core/service/ipallocator/controller/repair_test.go index 1b24bde17c0..26ef1bd34c7 100644 --- a/pkg/registry/core/service/ipallocator/controller/repair_test.go +++ b/pkg/registry/core/service/ipallocator/controller/repair_test.go @@ -270,13 +270,13 @@ func TestShouldWorkOnSecondary(t *testing.T) { fakeClient := makeFakeClientSet() primaryRegistry := makeRangeRegistry(t, tc.primaryNet.String()) - var secondaryRegistery *mockRangeRegistry + var secondaryRegistry *mockRangeRegistry if tc.secondaryNet != nil { - secondaryRegistery = makeRangeRegistry(t, tc.secondaryNet.String()) + secondaryRegistry = makeRangeRegistry(t, tc.secondaryNet.String()) } - repair := NewRepair(0, fakeClient.CoreV1(), fakeClient.CoreV1(), tc.primaryNet, primaryRegistry, tc.secondaryNet, secondaryRegistery) + repair := NewRepair(0, fakeClient.CoreV1(), fakeClient.CoreV1(), tc.primaryNet, primaryRegistry, tc.secondaryNet, secondaryRegistry) if repair.shouldWorkOnSecondary() != tc.expectedResult { t.Errorf("shouldWorkOnSecondary should be %v and found %v", tc.expectedResult, repair.shouldWorkOnSecondary()) } diff --git a/pkg/registry/core/service/strategy_test.go b/pkg/registry/core/service/strategy_test.go index cd9e08a7c53..4f089b43246 100644 --- a/pkg/registry/core/service/strategy_test.go +++ b/pkg/registry/core/service/strategy_test.go @@ -196,7 +196,7 @@ func TestBeforeUpdate(t *testing.T) { expectErr: true, }, { - name: "change selectpor", + name: "change selector", tweakSvc: func(oldSvc, newSvc *api.Service) { newSvc.Spec.Selector = map[string]string{"newkey": "newvalue"} }, diff --git a/pkg/registry/networking/ingress/storage/storage_test.go b/pkg/registry/networking/ingress/storage/storage_test.go index 45be3041a8f..8cd243da1f6 100644 --- a/pkg/registry/networking/ingress/storage/storage_test.go +++ b/pkg/registry/networking/ingress/storage/storage_test.go @@ -164,7 +164,7 @@ func TestUpdate(t *testing.T) { }) return object }, - // invalid updateFunc: ObjeceMeta is not to be tampered with. + // invalid updateFunc: ObjectMeta is not to be tampered with. func(obj runtime.Object) runtime.Object { object := obj.(*networking.Ingress) object.Name = "" diff --git a/pkg/registry/networking/ingress/strategy.go b/pkg/registry/networking/ingress/strategy.go index a8c3696ce89..280dc06add2 100644 --- a/pkg/registry/networking/ingress/strategy.go +++ b/pkg/registry/networking/ingress/strategy.go @@ -28,7 +28,7 @@ import ( "k8s.io/kubernetes/pkg/apis/networking/validation" ) -// ingressStrategy implements verification logic for Replication Ingresss. +// ingressStrategy implements verification logic for Replication Ingress. type ingressStrategy struct { runtime.ObjectTyper names.NameGenerator diff --git a/pkg/registry/storage/volumeattachment/strategy_test.go b/pkg/registry/storage/volumeattachment/strategy_test.go index 244e56b817c..9ee8e73fb9e 100644 --- a/pkg/registry/storage/volumeattachment/strategy_test.go +++ b/pkg/registry/storage/volumeattachment/strategy_test.go @@ -174,7 +174,7 @@ func TestVolumeAttachmentStatusStrategy(t *testing.T) { expectedVolumeAttachment := statusVolumeAttachment.DeepCopy() StatusStrategy.PrepareForUpdate(ctx, statusVolumeAttachment, volumeAttachment) if !apiequality.Semantic.DeepEqual(statusVolumeAttachment, expectedVolumeAttachment) { - t.Errorf("unexpected objects differerence after modifying status: %v", diff.ObjectDiff(statusVolumeAttachment, expectedVolumeAttachment)) + t.Errorf("unexpected objects difference after modifying status: %v", diff.ObjectDiff(statusVolumeAttachment, expectedVolumeAttachment)) } // spec and metadata modifications should be dropped @@ -192,7 +192,7 @@ func TestVolumeAttachmentStatusStrategy(t *testing.T) { StatusStrategy.PrepareForUpdate(ctx, newVolumeAttachment, volumeAttachment) if !apiequality.Semantic.DeepEqual(newVolumeAttachment, volumeAttachment) { - t.Errorf("unexpected objects differerence after modifying spec: %v", diff.ObjectDiff(newVolumeAttachment, volumeAttachment)) + t.Errorf("unexpected objects difference after modifying spec: %v", diff.ObjectDiff(newVolumeAttachment, volumeAttachment)) } }