Merge pull request #94501 from ialidzhikov/nit/labels-staticcheck

Fix staging/src/k8s.io/apimachinery/pkg/labels golint findings
This commit is contained in:
Kubernetes Prow Robot
2020-09-22 12:23:51 -07:00
committed by GitHub
5 changed files with 37 additions and 38 deletions

View File

@@ -39,7 +39,7 @@ type mutatingWebhookConfigurationStrategy struct {
// Strategy is the default logic that applies when creating and updating mutatingWebhookConfiguration objects.
var Strategy = mutatingWebhookConfigurationStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
// NamespaceScoped returns true because all mutatingWebhookConfiguration' need to be within a namespace.
// NamespaceScoped returns false because MutatingWebhookConfiguration is cluster-scoped resource.
func (mutatingWebhookConfigurationStrategy) NamespaceScoped() bool {
return false
}

View File

@@ -39,7 +39,7 @@ type validatingWebhookConfigurationStrategy struct {
// Strategy is the default logic that applies when creating and updating validatingWebhookConfiguration objects.
var Strategy = validatingWebhookConfigurationStrategy{legacyscheme.Scheme, names.SimpleNameGenerator}
// NamespaceScoped returns true because all validatingWebhookConfiguration' need to be within a namespace.
// NamespaceScoped returns false because ValidatingWebhookConfiguration is cluster-scoped resource.
func (validatingWebhookConfigurationStrategy) NamespaceScoped() bool {
return false
}