Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterValidator ¶
type ClusterValidator struct {
// contains filtered or unexported fields
}
ClusterValidator validates cluster CRs of the cluster registry.
func NewClusterValidator ¶
func NewClusterValidator(logger logr.Logger, manager ctrl.Manager) *ClusterValidator
NewClusterValidator instantiates a cluster CR validator set to work on the specified Kubernetes API server.
func (*ClusterValidator) Handle ¶
func (validator *ClusterValidator) Handle(ctx context.Context, request admission.Request) admission.Response
Handle handles the validator's admission requests and determines whether the specified request can be allowed.
func (*ClusterValidator) InjectDecoder ¶
func (validator *ClusterValidator) InjectDecoder(decoder *admission.Decoder) error
InjectDecoder sets the cluster CR decoder object.
Click to show internal directories.
Click to hide internal directories.