Documentation ¶
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) MutateAnnotationNodeTerminateUnhealthy(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateCredential(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateDescription(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateDomain(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateMasterPreHA(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateOperatorVersion(awsCluster infrastructurev1alpha3.AWSCluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutatePodCIDR(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateRegion(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateReleaseVersion(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
- func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)
- func (m *Mutator) Resource() string
- type Validator
- func (v *Validator) AWSClusterAnnotationCNIMinimumIPTarget(awsCluster infrastructurev1alpha3.AWSCluster) error
- func (v *Validator) AWSClusterAnnotationCNIPrefix(awsCluster infrastructurev1alpha3.AWSCluster) error
- func (v *Validator) AWSClusterAnnotationCNIWarmIPTarget(awsCluster infrastructurev1alpha3.AWSCluster) error
- func (v *Validator) AWSClusterAnnotationMaxBatchSizeIsValid(awsCluster infrastructurev1alpha3.AWSCluster) error
- func (v *Validator) AWSClusterAnnotationNodeTerminateUnhealthy(awsCluster infrastructurev1alpha3.AWSCluster) error
- func (v *Validator) AWSClusterAnnotationPauseTimeIsValid(awsCluster infrastructurev1alpha3.AWSCluster) 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 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) MutateAnnotationNodeTerminateUnhealthy ¶
func (m *Mutator) MutateAnnotationNodeTerminateUnhealthy(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateAnnotationNodeTerminateUnhealthy migrate NodeTerminateUnhealthy annotations from alpha to stable in case it is configured. TODO https://github.com/giantswarm/giantswarm/issues/17395 this migration code can be removed once all AWS clusters are on release 15.0.0 or newer
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) MutateCredential ¶
func (m *Mutator) MutateCredential(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateCredential defaults the cluster credential if it is not set.
func (*Mutator) MutateDescription ¶
func (m *Mutator) MutateDescription(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateDescription defaults the cluster description if it is not set.
func (*Mutator) MutateDomain ¶
func (m *Mutator) MutateDomain(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateDomain defaults the cluster dns domain if it is not set.
func (*Mutator) MutateMasterPreHA ¶
func (m *Mutator) MutateMasterPreHA(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateMasterPreHA is there to mutate the master instance attributes of the AWSCluster CR in legacy versions. This can be deprecated once no versions < 11.4.0 are in use anymore
func (*Mutator) MutateOperatorVersion ¶
func (m *Mutator) MutateOperatorVersion(awsCluster infrastructurev1alpha3.AWSCluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)
func (*Mutator) MutatePodCIDR ¶
func (m *Mutator) MutatePodCIDR(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutatePodCIDR defaults the Pod CIDR if it is not set.
func (*Mutator) MutateRegion ¶
func (m *Mutator) MutateRegion(awsCluster infrastructurev1alpha3.AWSCluster) ([]mutator.PatchOperation, error)
MutateRegion defaults the cluster region if it is not set.
func (*Mutator) MutateReleaseVersion ¶
func (m *Mutator) MutateReleaseVersion(awsCluster infrastructurev1alpha3.AWSCluster) ([]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) AWSClusterAnnotationCNIMinimumIPTarget ¶
func (v *Validator) AWSClusterAnnotationCNIMinimumIPTarget(awsCluster infrastructurev1alpha3.AWSCluster) error
func (*Validator) AWSClusterAnnotationCNIPrefix ¶ added in v3.6.0
func (v *Validator) AWSClusterAnnotationCNIPrefix(awsCluster infrastructurev1alpha3.AWSCluster) error
func (*Validator) AWSClusterAnnotationCNIWarmIPTarget ¶
func (v *Validator) AWSClusterAnnotationCNIWarmIPTarget(awsCluster infrastructurev1alpha3.AWSCluster) error
func (*Validator) AWSClusterAnnotationMaxBatchSizeIsValid ¶
func (v *Validator) AWSClusterAnnotationMaxBatchSizeIsValid(awsCluster infrastructurev1alpha3.AWSCluster) error
func (*Validator) AWSClusterAnnotationNodeTerminateUnhealthy ¶
func (v *Validator) AWSClusterAnnotationNodeTerminateUnhealthy(awsCluster infrastructurev1alpha3.AWSCluster) error
func (*Validator) AWSClusterAnnotationPauseTimeIsValid ¶
func (v *Validator) AWSClusterAnnotationPauseTimeIsValid(awsCluster infrastructurev1alpha3.AWSCluster) 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)