Fix staging/src/k8s.io/apimachinery/pkg/labels golint findings
Signed-off-by: ialidzhikov <i.alidjikov@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user