dataplane

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDataPlaneBlueGreenRolloutFailedToChangeSpecDuringPromotion = errors.New("failed to change DataPlane spec when promotion is in progress")

ErrDataPlaneBlueGreenRolloutFailedToChangeSpecDuringPromotion is an error which indicates that DataPlane update which changes its spec was rejected because it cannot be changed during a Blue Green promotion.

Functions

This section is empty.

Types

type Validator

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

Validator validates DataPlane objects.

func NewValidator

func NewValidator(c client.Client) *Validator

NewValidator creates a DataPlane validator.

func (*Validator) Validate

func (v *Validator) Validate(dataplane *operatorv1beta1.DataPlane) error

Validate validates a DataPlane object and return the first validation error found.

func (*Validator) ValidateDataPlaneDeploymentOptions

func (v *Validator) ValidateDataPlaneDeploymentOptions(namespace string, opts *operatorv1beta1.DeploymentOptions) error

ValidateDataPlaneDeploymentOptions validates the DeploymentOptions field of DataPlane object.

func (*Validator) ValidateDataPlaneDeploymentRollout

func (v *Validator) ValidateDataPlaneDeploymentRollout(rollout *operatorv1beta1.Rollout) error

ValidateDataPlaneDeploymentRollout validates the Rollout field of DataPlane object.

func (*Validator) ValidateDataPlaneIngressServiceOptions

func (v *Validator) ValidateDataPlaneIngressServiceOptions(
	namespace string, opts *operatorv1beta1.DataPlaneServiceOptions, proxyContainer *corev1.Container,
) error

ValidateDataPlaneIngressServiceOptions validates spec.serviceOptions of given DataPlane.

func (*Validator) ValidateIfRolloutInProgress

func (v *Validator) ValidateIfRolloutInProgress(dataplane, oldDataPlane *operatorv1beta1.DataPlane) error

func (*Validator) ValidateUpdate

func (v *Validator) ValidateUpdate(dataplane, oldDataPlane *operatorv1beta1.DataPlane) error

ValidateUpdate validates a DataPlane object change upon an update event.

Jump to

Keyboard shortcuts

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