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
- func (m *Mutator) Log(keyVals ...interface{})
- func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateControlPlaneLabel(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateInfraRef(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReplicaUpdate(g8sControlPlaneNewCR infrastructurev1alpha3.G8sControlPlane, ...) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReplicas(availabilityZones int, g8sControlPlane infrastructurev1alpha3.G8sControlPlane, ...) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (m *Validator) Log(keyVals ...interface{})
- func (v *Validator) ReplicaAZMatch(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
- func (v *Validator) ReplicaCount(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
- func (v *Validator) Resource() string
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateUpdate(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)
func (*Mutator) MutateControlPlaneLabel ¶
func (m *Mutator) MutateControlPlaneLabel(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateCreate ¶
func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateCreate is the function executed for every create webhook request.
func (*Mutator) MutateInfraRef ¶
func (m *Mutator) MutateInfraRef(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReleaseVersion ¶
func (m *Mutator) MutateReleaseVersion(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReplicaUpdate ¶
func (m *Mutator) MutateReplicaUpdate(g8sControlPlaneNewCR infrastructurev1alpha3.G8sControlPlane, g8sControlPlaneOldCR infrastructurev1alpha3.G8sControlPlane, awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReplicas ¶
func (m *Mutator) MutateReplicas(availabilityZones int, g8sControlPlane infrastructurev1alpha3.G8sControlPlane, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
func (*Mutator) MutateUpdate ¶
func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateCreate is the function executed for every create webhook request.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) ReplicaAZMatch ¶
func (v *Validator) ReplicaAZMatch(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
func (*Validator) ReplicaCount ¶
func (v *Validator) ReplicaCount(g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
func (*Validator) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateCreate ¶
func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateUpdate ¶
func (v *Validator) ValidateUpdate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.