mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
[pkg/registry/admissionregistration]: fixup wrong copy&paste godoc
This was introduced at commit: fc5a613c17
Signed-off-by: Zhou Peng <p@ctriple.cn>
This commit is contained in:
parent
14a11060a0
commit
d253551e89
@ -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{} },
|
||||
|
@ -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{} },
|
||||
|
Loading…
Reference in New Issue
Block a user