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) MutateAvailabilityZones(replicas int, awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateAvailabilityZonesPreHA(availabilityZone []string, ...) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateControlPlaneLabel(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateInstanceType(awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateInstanceTypePreHA(instanceType string, awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOperatorVersion(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutatePreHA(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (v *Validator) AZCount(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
- func (v *Validator) AZOrder(awsControlPlane infrastructurev1alpha3.AWSControlPlane, ...) error
- func (v *Validator) AZReplicaMatch(awsControlPlane infrastructurev1alpha3.AWSControlPlane, ...) error
- func (v *Validator) AZUnique(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
- func (v *Validator) AZValid(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
- func (v *Validator) ControlPlaneLabelMatch(awsControlPlane infrastructurev1alpha3.AWSControlPlane, ...) error
- func (v *Validator) InstanceTypeValid(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
- func (v *Validator) Log(keyVals ...interface{})
- 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) MutateAvailabilityZones ¶
func (m *Mutator) MutateAvailabilityZones(replicas int, awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateAvailabilityZonesPreHA ¶
func (m *Mutator) MutateAvailabilityZonesPreHA(availabilityZone []string, awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateControlPlaneLabel ¶
func (m *Mutator) MutateControlPlaneLabel(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]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) MutateInstanceType ¶
func (m *Mutator) MutateInstanceType(awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateInstanceTypePreHA ¶
func (m *Mutator) MutateInstanceTypePreHA(instanceType string, awsControlPlaneCR infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateOperatorVersion ¶
func (m *Mutator) MutateOperatorVersion(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutatePreHA ¶
func (m *Mutator) MutatePreHA(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
MutatePreHA is there to mutate the master instance attributes from the AWSCluster CR in legacy versions. This can be deprecated once no versions < 11.4.0 are in use anymore
func (*Mutator) MutateReleaseVersion ¶
func (m *Mutator) MutateReleaseVersion(awsControlPlane infrastructurev1alpha3.AWSControlPlane) ([]mutator.PatchOperation, error)
func (*Mutator) MutateUpdate ¶
func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
MutateUpdate is the function executed for every update webhook request.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func (*Validator) AZCount ¶
func (v *Validator) AZCount(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
func (*Validator) AZOrder ¶
func (v *Validator) AZOrder(awsControlPlane infrastructurev1alpha3.AWSControlPlane, awsControlPlaneOld infrastructurev1alpha3.AWSControlPlane) error
func (*Validator) AZReplicaMatch ¶
func (v *Validator) AZReplicaMatch(awsControlPlane infrastructurev1alpha3.AWSControlPlane, g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
func (*Validator) AZUnique ¶
func (v *Validator) AZUnique(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
func (*Validator) AZValid ¶
func (v *Validator) AZValid(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
func (*Validator) ControlPlaneLabelMatch ¶
func (v *Validator) ControlPlaneLabelMatch(awsControlPlane infrastructurev1alpha3.AWSControlPlane, g8sControlPlane infrastructurev1alpha3.G8sControlPlane) error
func (*Validator) InstanceTypeValid ¶
func (v *Validator) InstanceTypeValid(awsControlPlane infrastructurev1alpha3.AWSControlPlane) error
func (*Validator) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateCreate ¶ added in v3.3.0
func (v *Validator) ValidateCreate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateUpdate ¶ added in v3.3.0
func (v *Validator) ValidateUpdate(request *admissionv1.AdmissionRequest) (bool, error)
Click to show internal directories.
Click to hide internal directories.