Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedResponse ¶
func AllowedResponse() *admissionv1.AdmissionResponse
AllowedResponse constructs an allowed AdmissionResponse
func DeniedResponse ¶
func DeniedResponse(reason string, args ...interface{}) *admissionv1.AdmissionResponse
DeniedResponse constructs a denied AdmissionResponse
Types ¶
type Validator ¶
type Validator interface {
ValidateCreate(context.Context) *admissionv1.AdmissionResponse
ValidateUpdate(context.Context) *admissionv1.AdmissionResponse
}
func GetValidator ¶
func GetValidator(ctx context.Context, kynomeshClient v1alpha1.KynomeshV1alpha1Interface, kind metav1.GroupVersionKind, oldBytes []byte, newBytes []byte) (Validator, error)
GetValidator returns a Validator instance
func NewAgentSetValidator ¶
Click to show internal directories.
Click to hide internal directories.