mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #94177 from iotty/fix.godoc
[pkg/registry/admissionregistration]: fixup wrong copy&paste godoc
This commit is contained in:
commit
35942f6570
@ -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