Skip to content

Commit b873cbb

Browse files
committed
Fix: pkg/apis Typos in comments, function name, error message
poicy -> policy varialbes -> variables exeuction -> execution Resaurces -> Resources TestSetDefaulEndpointsProtocol -> TestSetDefaultEndpointsProtocol TestSetDefaulServiceTargetPort -> TestSetDefaultServiceTargetPort TestSetDefaulServiceExternalTraffic -> TestSetDefaultServiceExternalTraffic
1 parent 96dfa3f commit b873cbb

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pkg/apis/core/v1/defaults_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ func TestSetDefaultReplicationControllerInitContainers(t *testing.T) {
608608

609609
assertImagePullPolicy := func(got, expected *v1.Container) error {
610610
if got.ImagePullPolicy != expected.ImagePullPolicy {
611-
return fmt.Errorf("different image pull poicy: got <%v>, expected <%v>", got.ImagePullPolicy, expected.ImagePullPolicy)
611+
return fmt.Errorf("different image pull policy: got <%v>, expected <%v>", got.ImagePullPolicy, expected.ImagePullPolicy)
612612
}
613613
return nil
614614
}
@@ -1375,7 +1375,7 @@ func TestSetDefaultPersistentVolumeClaim(t *testing.T) {
13751375
}
13761376
}
13771377

1378-
func TestSetDefaulEndpointsProtocol(t *testing.T) {
1378+
func TestSetDefaultEndpointsProtocol(t *testing.T) {
13791379
in := &v1.Endpoints{Subsets: []v1.EndpointSubset{
13801380
{Ports: []v1.EndpointPort{{}, {Protocol: "UDP"}, {}}},
13811381
}}
@@ -1397,7 +1397,7 @@ func TestSetDefaulEndpointsProtocol(t *testing.T) {
13971397
}
13981398
}
13991399

1400-
func TestSetDefaulServiceTargetPort(t *testing.T) {
1400+
func TestSetDefaultServiceTargetPort(t *testing.T) {
14011401
in := &v1.Service{Spec: v1.ServiceSpec{Ports: []v1.ServicePort{{Port: 1234}}}}
14021402
obj := roundTrip(t, runtime.Object(in))
14031403
out := obj.(*v1.Service)
@@ -1457,7 +1457,7 @@ func TestSetDefaultServicePort(t *testing.T) {
14571457
}
14581458
}
14591459

1460-
func TestSetDefaulServiceExternalTraffic(t *testing.T) {
1460+
func TestSetDefaultServiceExternalTraffic(t *testing.T) {
14611461
in := &v1.Service{}
14621462
obj := roundTrip(t, runtime.Object(in))
14631463
out := obj.(*v1.Service)

pkg/apis/core/v1/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func init() {
3333
localSchemeBuilder.Register(addDefaultingFuncs, addConversionFuncs)
3434
}
3535

36-
// TODO: remove these global varialbes
36+
// TODO: remove these global variables
3737
// GroupName is the group name use in this package
3838
const GroupName = ""
3939

pkg/apis/flowcontrol/validation/validation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ func ValidatePriorityLevelConfigurationSpec(spec *flowcontrol.PriorityLevelConfi
382382
return allErrs
383383
}
384384

385-
// ValidateLimitedPriorityLevelConfiguration validates the configuration for an exeuction-limited priority level
385+
// ValidateLimitedPriorityLevelConfiguration validates the configuration for an execution-limited priority level
386386
func ValidateLimitedPriorityLevelConfiguration(lplc *flowcontrol.LimitedPriorityLevelConfiguration, fldPath *field.Path) field.ErrorList {
387387
var allErrs field.ErrorList
388388
if lplc.AssuredConcurrencyShares <= 0 {

pkg/apis/rbac/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"k8s.io/apimachinery/pkg/util/sets"
2525
)
2626

27-
// ResourceMatches returns the result of the rule.Resaurces matching.
27+
// ResourceMatches returns the result of the rule.Resources matching.
2828
func ResourceMatches(rule *PolicyRule, combinedRequestedResource, requestedSubresource string) bool {
2929
for _, ruleResource := range rule.Resources {
3030
// if everything is allowed, we match

0 commit comments

Comments
 (0)