Fix: pkg/apis Typos in comments, function name, error message

poicy -> policy
varialbes -> variables
exeuction -> execution
Resaurces -> Resources
TestSetDefaulEndpointsProtocol -> TestSetDefaultEndpointsProtocol
TestSetDefaulServiceTargetPort -> TestSetDefaultServiceTargetPort
TestSetDefaulServiceExternalTraffic -> TestSetDefaultServiceExternalTraffic
This commit is contained in:
Taesun Lee
2020-02-24 00:06:09 +09:00
parent 96dfa3f605
commit b873cbbed5
4 changed files with 7 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ import (
"k8s.io/apimachinery/pkg/util/sets"
)
// ResourceMatches returns the result of the rule.Resaurces matching.
// ResourceMatches returns the result of the rule.Resources matching.
func ResourceMatches(rule *PolicyRule, combinedRequestedResource, requestedSubresource string) bool {
for _, ruleResource := range rule.Resources {
// if everything is allowed, we match