mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-20 09:50:57 +00:00
Merge pull request #94501 from ialidzhikov/nit/labels-staticcheck
Fix staging/src/k8s.io/apimachinery/pkg/labels golint findings
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