Documentation ¶
Overview ¶
package awsmachinedeployment intercepts write activity to AWSMachineDeployment objects.
Index ¶
- func IsInvalidConfig(err error) bool
- func IsNotAllowed(err error) bool
- func IsNotFound(err error) bool
- func IsParsingFailed(err error) bool
- type Config
- type Mutator
- func (m *Mutator) Log(keyVals ...interface{})
- func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateAvailabilityZones(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOnDemandPercentage(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOperatorVersion(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (v *Validator) AZValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) InstanceTypeValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) Log(keyVals ...interface{})
- func (v *Validator) MachineDeploymentAnnotationMaxBatchSizeIsValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) MachineDeploymentAnnotationPauseTimeIsValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) MachineDeploymentLabelMatch(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) MachineDeploymentScaling(md infrastructurev1alpha3.AWSMachineDeployment) error
- func (v *Validator) Resource() string
- func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
- func (v *Validator) ValidateCluster(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) 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 IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsParsingFailed ¶
IsParsingFailed asserts parsingFailedError.
Types ¶
type Mutator ¶
type Mutator struct {
// contains filtered or unexported fields
}
Mutator for AWSMachineDeployment object.
func (*Mutator) Mutate ¶
func (m *Mutator) Mutate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
Mutate is the function executed for every matching webhook request.
func (*Mutator) MutateAvailabilityZones ¶
func (m *Mutator) MutateAvailabilityZones(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]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) MutateOnDemandPercentage ¶
func (m *Mutator) MutateOnDemandPercentage(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
MutateOnDemandPercentage defaults the OnDemandPercentageAboveBaseCapacity.
func (*Mutator) MutateOperatorVersion ¶
func (m *Mutator) MutateOperatorVersion(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]mutator.PatchOperation, error)
func (*Mutator) MutateReleaseVersion ¶
func (m *Mutator) MutateReleaseVersion(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) ([]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) AZValid ¶
func (v *Validator) AZValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) InstanceTypeValid ¶
func (v *Validator) InstanceTypeValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) MachineDeploymentAnnotationMaxBatchSizeIsValid ¶
func (v *Validator) MachineDeploymentAnnotationMaxBatchSizeIsValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) MachineDeploymentAnnotationPauseTimeIsValid ¶
func (v *Validator) MachineDeploymentAnnotationPauseTimeIsValid(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) MachineDeploymentLabelMatch ¶
func (v *Validator) MachineDeploymentLabelMatch(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) MachineDeploymentScaling ¶
func (v *Validator) MachineDeploymentScaling(md infrastructurev1alpha3.AWSMachineDeployment) error
func (*Validator) Validate ¶
func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)
func (*Validator) ValidateCluster ¶
func (v *Validator) ValidateCluster(awsMachineDeployment infrastructurev1alpha3.AWSMachineDeployment) 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.