awscluster

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package awsmachinedeployment intercepts write activity to AWSMachineDeployment objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 Config

type Config struct {
	K8sClient k8sclient.Interface
	Logger    micrologger.Logger
}

type Mutator

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

Mutator for AWSMachineDeployment object.

func NewMutator

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

func (*Mutator) Log

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

func (*Mutator) Mutate

Mutate is the function executed for every matching webhook request.

func (*Mutator) MutateCreate added in v2.2.0

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

MutateCreate is the function executed for every create webhook request.

func (*Mutator) MutateCredential added in v2.2.2

func (m *Mutator) MutateCredential(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

MutateCredential defaults the cluster credential if it is not set.

func (*Mutator) MutateDescription added in v2.2.0

func (m *Mutator) MutateDescription(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

MutateDescription defaults the cluster description if it is not set.

func (*Mutator) MutateDomain added in v2.2.0

func (m *Mutator) MutateDomain(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

MutateDomain defaults the cluster dns domain if it is not set.

func (*Mutator) MutateMasterPreHA added in v2.3.3

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

func (m *Mutator) MutateOperatorVersion(awsCluster infrastructurev1alpha2.AWSCluster, releaseVersion *semver.Version) ([]mutator.PatchOperation, error)

func (*Mutator) MutatePodCIDR added in v2.2.0

func (m *Mutator) MutatePodCIDR(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

MutatePodCIDR defaults the Pod CIDR if it is not set.

func (*Mutator) MutateRegion added in v2.2.0

func (m *Mutator) MutateRegion(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

MutateRegion defaults the cluster region if it is not set.

func (*Mutator) MutateReleaseVersion added in v2.3.3

func (m *Mutator) MutateReleaseVersion(awsCluster infrastructurev1alpha2.AWSCluster) ([]mutator.PatchOperation, error)

func (*Mutator) MutateUpdate added in v2.2.0

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 added in v2.2.0

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

func NewValidator added in v2.2.0

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

func (*Validator) AWSClusterAnnotationCNIMinimumIPTarget added in v2.8.0

func (v *Validator) AWSClusterAnnotationCNIMinimumIPTarget(awsCluster infrastructurev1alpha2.AWSCluster) error

func (*Validator) AWSClusterAnnotationCNIWarmIPTarget added in v2.8.0

func (v *Validator) AWSClusterAnnotationCNIWarmIPTarget(awsCluster infrastructurev1alpha2.AWSCluster) error

func (*Validator) AWSClusterAnnotationMaxBatchSizeIsValid added in v2.2.0

func (v *Validator) AWSClusterAnnotationMaxBatchSizeIsValid(awsCluster infrastructurev1alpha2.AWSCluster) error

func (*Validator) AWSClusterAnnotationPauseTimeIsValid added in v2.2.0

func (v *Validator) AWSClusterAnnotationPauseTimeIsValid(awsCluster infrastructurev1alpha2.AWSCluster) error

func (*Validator) Log added in v2.2.0

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

func (*Validator) Resource added in v2.2.0

func (v *Validator) Resource() string

func (*Validator) Validate added in v2.2.0

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