Documentation ¶
Index ¶
- func IsControlPlaneLabelNotEqualError(err error) bool
- func IsExecutionFailed(err error) bool
- func IsInvalidConfig(err error) bool
- func IsNotAllowed(err error) bool
- func IsNotFound(err error) bool
- func IsParsingFailed(err error) bool
- type Mutator
- type Validator
- func (m *Validator) Log(keyVals ...interface{})
- func (v *Validator) ReplicaAZMatch(g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error
- func (v *Validator) ReplicaCount(g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error
- func (v *Validator) Resource() string
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsControlPlaneLabelNotEqualError ¶
IsControlPlaneLabelNotEqualError asserts controlPlaneLabelNotEqualError.
func IsExecutionFailed ¶
IsExecutionFailed asserts executionFailedError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsParsingFailed ¶
IsParsingFailed asserts parsingFailedError.
Types ¶
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
func (*Mutator) Mutate ¶
func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ReplicaAZMatch ¶
func (v *Validator) ReplicaAZMatch(g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error
func (*Validator) ReplicaCount ¶
func (v *Validator) ReplicaCount(g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error
func (*Validator) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.