Skip to content

Commit e0f9955

Browse files
authored
Merge pull request kubernetes#129515 from nojnhuh/typos
Fix comment typos
2 parents 77b0410 + 006ebbc commit e0f9955

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/namespace/matcher.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ func (m *Matcher) GetNamespaceLabels(attr admission.Attributes) (map[string]stri
9595
return namespace.Labels, nil
9696
}
9797

98-
// MatchNamespaceSelector decideds whether the request matches the
99-
// namespaceSelctor of the webhook. Only when they match, the webhook is called.
98+
// MatchNamespaceSelector decides whether the request matches the
99+
// namespaceSelector of the webhook. Only when they match, the webhook is called.
100100
func (m *Matcher) MatchNamespaceSelector(p NamespaceSelectorProvider, attr admission.Attributes) (bool, *apierrors.StatusError) {
101101
namespaceName := attr.GetNamespace()
102102
if len(namespaceName) == 0 && attr.GetResource().Resource != "namespaces" {

staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/predicates/object/matcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func matchObject(obj runtime.Object, selector labels.Selector) bool {
4747

4848
}
4949

50-
// MatchObjectSelector decideds whether the request matches the ObjectSelector
50+
// MatchObjectSelector decides whether the request matches the ObjectSelector
5151
// of the webhook. Only when they match, the webhook is called.
5252
func (m *Matcher) MatchObjectSelector(p ObjectSelectorProvider, attr admission.Attributes) (bool, *apierrors.StatusError) {
5353
selector, err := p.GetParsedObjectSelector()

staging/src/k8s.io/apiserver/pkg/server/egressselector/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232

3333
var cfgScheme = runtime.NewScheme()
3434

35-
// validEgressSelectorNames contains the set of valid egress selctor names.
35+
// validEgressSelectorNames contains the set of valid egress selector names.
3636
var validEgressSelectorNames = sets.NewString("controlplane", "cluster", "etcd")
3737

3838
func init() {

0 commit comments

Comments
 (0)