MCPcopy
hub / github.com/kubevela/kubevela / ResourceAdmissionHandler

Interface ResourceAdmissionHandler

pkg/resourcekeeper/admission.go:51–53  ·  view source on GitHub ↗

ResourceAdmissionHandler defines the handler to validate the admission of resource operation

Source from the content-addressed store, hash-verified

49
50// ResourceAdmissionHandler defines the handler to validate the admission of resource operation
51type ResourceAdmissionHandler interface {
52 Validate(ctx context.Context, manifests []*unstructured.Unstructured) error
53}
54
55// NamespaceAdmissionHandler defines the handler to validate if the resource namespace is valid to be dispatch/delete
56type NamespaceAdmissionHandler struct {

Callers 8

TestUISchema_ValidateFunction · 0.65
TestCondition_ValidateFunction · 0.65
ValidateMethod · 0.65
TestIdentityFunction · 0.65
AdmissionCheckMethod · 0.65
CompleteMethod · 0.65
CompleteMethod · 0.65

Implementers 15

ApplicationBuilderpkg/definition/gen_sdk/_scaffold/go/pk
Conditionpkg/utils/schema/ui_schema.go
Identitypkg/auth/identity.go
NamespaceAdmissionHandlerpkg/resourcekeeper/admission.go
ResourceTypeAdmissionHandlerpkg/resourcekeeper/admission.go
KubeClusterConfigpkg/multicluster/cluster_management.go
UpCommandOptionsreferences/cli/up.go
KubeApplyOptionsreferences/cli/kube.go
KubeDeleteOptionsreferences/cli/kube.go
DeleteOptionsreferences/cli/delete.go
GenKubeConfigOptionsreferences/cli/auth.go
ListPrivilegesOptionsreferences/cli/auth.go

Calls

no outgoing calls

Tested by

no test coverage detected