awscontrolplane

package
v2.12.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsControlPlaneLabelNotEqualError

func IsControlPlaneLabelNotEqualError(err error) bool

IsControlPlaneLabelNotEqualError asserts controlPlaneLabelNotEqualError.

func IsExecutionFailed

func IsExecutionFailed(err error) bool

IsExecutionFailed asserts executionFailedError.

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsNotAllowed

func IsNotAllowed(err error) bool

IsNotAllowed asserts notAllowedError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

func IsParsingFailed

func IsParsingFailed(err error) bool

IsParsingFailed asserts parsingFailedError.

Types

type Mutator

type Mutator struct {
	// contains filtered or unexported fields
}

func NewMutator

func NewMutator(config config.Config) (*Mutator, error)

func (*Mutator) Log

func (m *Mutator) Log(keyVals ...interface{})

func (*Mutator) Mutate

func (*Mutator) MutateAvailabilityZones added in v2.3.3

func (m *Mutator) MutateAvailabilityZones(replicas int, awsControlPlaneCR infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateAvailabilityZonesPreHA added in v2.3.3

func (m *Mutator) MutateAvailabilityZonesPreHA(availabilityZone []string, awsControlPlaneCR infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateControlPlaneLabel added in v2.11.0

func (m *Mutator) MutateControlPlaneLabel(awsControlPlane infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateCreate added in v2.3.3

func (m *Mutator) MutateCreate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)

MutateCreate is the function executed for every create webhook request.

func (*Mutator) MutateInstanceType added in v2.3.3

func (m *Mutator) MutateInstanceType(awsControlPlaneCR infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateInstanceTypePreHA added in v2.3.3

func (m *Mutator) MutateInstanceTypePreHA(instanceType string, awsControlPlaneCR infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateOperatorVersion added in v2.3.3

func (m *Mutator) MutateOperatorVersion(awsControlPlane infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutatePreHA added in v2.3.3

func (m *Mutator) MutatePreHA(awsControlPlane infrastructurev1alpha2.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 added in v2.3.3

func (m *Mutator) MutateReleaseVersion(awsControlPlane infrastructurev1alpha2.AWSControlPlane) ([]mutator.PatchOperation, error)

func (*Mutator) MutateUpdate added in v2.3.3

func (m *Mutator) MutateUpdate(request *admissionv1.AdmissionRequest) ([]mutator.PatchOperation, error)

MutateUpdate is the function executed for every update webhook request.

func (*Mutator) Resource

func (m *Mutator) Resource() string

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(config config.Config) (*Validator, error)

func (*Validator) AZCount

func (v *Validator) AZCount(awsControlPlane infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) AZOrder

func (v *Validator) AZOrder(awsControlPlane infrastructurev1alpha2.AWSControlPlane, awsControlPlaneOld infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) AZReplicaMatch

func (v *Validator) AZReplicaMatch(awsControlPlane infrastructurev1alpha2.AWSControlPlane, g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error

func (*Validator) AZUnique

func (v *Validator) AZUnique(awsControlPlane infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) AZValid

func (v *Validator) AZValid(awsControlPlane infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) ControlPlaneLabelMatch

func (v *Validator) ControlPlaneLabelMatch(awsControlPlane infrastructurev1alpha2.AWSControlPlane, g8sControlPlane infrastructurev1alpha2.G8sControlPlane) error

func (*Validator) ControlPlaneLabelSet added in v2.11.0

func (v *Validator) ControlPlaneLabelSet(awsControlPlane infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) InstanceTypeValid

func (v *Validator) InstanceTypeValid(awsControlPlane infrastructurev1alpha2.AWSControlPlane) error

func (*Validator) Log

func (v *Validator) Log(keyVals ...interface{})

func (*Validator) Resource

func (v *Validator) Resource() string

func (*Validator) Validate

func (v *Validator) Validate(request *admissionv1.AdmissionRequest) (bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL