Documentation ¶
Index ¶
- Variables
- type Validator
- func (v *Validator) Validate(dataplane *operatorv1beta1.DataPlane) error
- func (v *Validator) ValidateDataPlaneDeploymentOptions(namespace string, opts *operatorv1beta1.DeploymentOptions) error
- func (v *Validator) ValidateDataPlaneDeploymentRollout(rollout *operatorv1beta1.Rollout) error
- func (v *Validator) ValidateDataPlaneIngressServiceOptions(namespace string, opts *operatorv1beta1.DataPlaneServiceOptions, ...) error
- func (v *Validator) ValidateIfRolloutInProgress(dataplane, oldDataPlane *operatorv1beta1.DataPlane) error
- func (v *Validator) ValidateUpdate(dataplane, oldDataPlane *operatorv1beta1.DataPlane) error
Constants ¶
This section is empty.
Variables ¶
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 ¶
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.