From d253551e89a87708e26ab886a73f54995c549dbd Mon Sep 17 00:00:00 2001 From: Zhou Peng Date: Sat, 22 Aug 2020 01:18:49 +0800 Subject: [PATCH] [pkg/registry/admissionregistration]: fixup wrong copy&paste godoc This was introduced at commit: fc5a613c17c81fdd Signed-off-by: Zhou Peng --- .../mutatingwebhookconfiguration/storage/storage.go | 4 ++-- .../validatingwebhookconfiguration/storage/storage.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage/storage.go b/pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage/storage.go index bd70437e13a..e5c0388874a 100644 --- a/pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage/storage.go +++ b/pkg/registry/admissionregistration/mutatingwebhookconfiguration/storage/storage.go @@ -27,12 +27,12 @@ import ( "k8s.io/kubernetes/pkg/registry/admissionregistration/mutatingwebhookconfiguration" ) -// REST implements a RESTStorage for pod disruption budgets against etcd +// REST implements a RESTStorage for mutatingWebhookConfiguration against etcd type REST struct { *genericregistry.Store } -// NewREST returns a RESTStorage object that will work against pod disruption budgets. +// NewREST returns a RESTStorage object that will work against mutatingWebhookConfiguration. func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) { store := &genericregistry.Store{ NewFunc: func() runtime.Object { return &admissionregistration.MutatingWebhookConfiguration{} }, diff --git a/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage/storage.go b/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage/storage.go index 9c5599c57df..4c0cb761800 100644 --- a/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage/storage.go +++ b/pkg/registry/admissionregistration/validatingwebhookconfiguration/storage/storage.go @@ -27,12 +27,12 @@ import ( "k8s.io/kubernetes/pkg/registry/admissionregistration/validatingwebhookconfiguration" ) -// REST implements a RESTStorage for pod disruption budgets against etcd +// REST implements a RESTStorage for validatingWebhookConfiguration against etcd type REST struct { *genericregistry.Store } -// NewREST returns a RESTStorage object that will work against pod disruption budgets. +// NewREST returns a RESTStorage object that will work against validatingWebhookConfiguration. func NewREST(optsGetter generic.RESTOptionsGetter) (*REST, error) { store := &genericregistry.Store{ NewFunc: func() runtime.Object { return &admissionregistration.ValidatingWebhookConfiguration{} },