Files
capsule/pkg/webhook/route/tenantresource_objs.go
T
Oliver Bähler 9ebbbed785 feat(helm): introduce new installation and CRD lifecycle (#1065)
* chore: name change for webhook names

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: remove apidocs

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* feat(helm): implement crd lifecycle and values consistency

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

* chore: change default group name

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>

---------

Signed-off-by: Oliver Bähler <oliverbaehler@hotmail.com>
2024-06-12 19:36:01 +02:00

27 lines
789 B
Go

// Copyright 2020-2023 Project Capsule Authors.
// SPDX-License-Identifier: Apache-2.0
package route
import (
capsulewebhook "github.com/projectcapsule/capsule/pkg/webhook"
)
// +kubebuilder:webhook:path=/tenantresource-objects,mutating=false,sideEffects=None,admissionReviewVersions=v1,failurePolicy=fail,groups="*",resources="*",verbs=update;delete,versions="*",name=resource-objects.tenant.projectcapsule.dev
type tntResourceObjs struct {
handlers []capsulewebhook.Handler
}
func TenantResourceObjects(handlers ...capsulewebhook.Handler) capsulewebhook.Webhook {
return &tntResourceObjs{handlers: handlers}
}
func (t tntResourceObjs) GetPath() string {
return "/tenantresource-objects"
}
func (t tntResourceObjs) GetHandlers() []capsulewebhook.Handler {
return t.handlers
}