validation

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateBackendRef added in v0.2.0

func ValidateBackendRef(ref rolloutv1alpha1.BackendRef, fldPath *field.Path, isSupportedBackend SupportedGVKFunc) field.ErrorList

func ValidateBackendRouting added in v0.2.0

func ValidateBackendRouting(
	obj *rolloutv1alpha1.BackendRouting,
	isSupportedRoute, isSupportedBackend SupportedGVKFunc,
) field.ErrorList

func ValidateBackendRoutingRoutes added in v0.2.0

func ValidateBackendRoutingRoutes(routes []rolloutv1alpha1.CrossClusterObjectReference, fldPath *field.Path, isSupportedGVK SupportedGVKFunc) field.ErrorList

func ValidateBackendRoutingSpec added in v0.2.0

func ValidateBackendRoutingSpec(
	spec *rolloutv1alpha1.BackendRoutingSpec,
	fldPath *field.Path,
	isSupportedRoute, isSupportedBackend SupportedGVKFunc,
) field.ErrorList

func ValidateBatchStrategy

func ValidateBatchStrategy(strategy *rolloutv1alpha1.BatchStrategy, fldPath *field.Path) field.ErrorList

func ValidateCanaryStrategy

func ValidateCanaryStrategy(strategy *rolloutv1alpha1.CanaryStrategy, fldPath *field.Path) field.ErrorList

func ValidateForkBackend added in v0.2.0

func ValidateForkBackend(foredBackend *rolloutv1alpha1.ForkedBackends, fldPath *field.Path) field.ErrorList

func ValidateForwardingHTTP added in v0.2.0

func ValidateForwardingHTTP(httpSpec *rolloutv1alpha1.HTTPForwarding, fldPath *field.Path) field.ErrorList

func ValidateForwording added in v0.2.0

func ValidateForwording(forwarding *rolloutv1alpha1.BackendForwarding, fldPath *field.Path) field.ErrorList

func ValidateResourceMatch

func ValidateResourceMatch(match *rolloutv1alpha1.ResourceMatch, fldPath *field.Path) field.ErrorList

func ValidateRollout

func ValidateRollout(rollout *rolloutv1alpha1.Rollout, isSupportedGVK SupportedGVKFunc) field.ErrorList

func ValidateRolloutRun

func ValidateRolloutRun(obj *rolloutv1alpha1.RolloutRun) field.ErrorList

func ValidateRolloutRunBatchStrategy

func ValidateRolloutRunBatchStrategy(batch *rolloutv1alpha1.RolloutRunBatchStrategy, fldPath *field.Path) field.ErrorList

func ValidateRolloutRunCanaryStrategy

func ValidateRolloutRunCanaryStrategy(canary *rolloutv1alpha1.RolloutRunCanaryStrategy, fldPath *field.Path) field.ErrorList

func ValidateRolloutRunSpec

func ValidateRolloutRunSpec(spec *rolloutv1alpha1.RolloutRunSpec, fldPath *field.Path) field.ErrorList

func ValidateRolloutRunUpdate

func ValidateRolloutRunUpdate(newObj, oldObj *rolloutv1alpha1.RolloutRun) field.ErrorList

func ValidateRolloutSpec

func ValidateRolloutSpec(spec *rolloutv1alpha1.RolloutSpec, fldPath *field.Path, isSupportedGVK SupportedGVKFunc) field.ErrorList

func ValidateRolloutStep

func ValidateRolloutStep(step *rolloutv1alpha1.RolloutStep, fldPath *field.Path) field.ErrorList

func ValidateRolloutStrategy

func ValidateRolloutStrategy(obj *rolloutv1alpha1.RolloutStrategy) field.ErrorList

func ValidateRolloutUpdate

func ValidateRolloutUpdate(newObj, oldObj *rolloutv1alpha1.Rollout) field.ErrorList

func ValidateRolloutWebhook

func ValidateRolloutWebhook(webhook *rolloutv1alpha1.RolloutWebhook, fldPath *field.Path) field.ErrorList

func ValidateRoutes added in v0.2.0

func ValidateRoutes(routes []rolloutv1alpha1.RouteRef, fldPath *field.Path, isSupportedRoute SupportedGVKFunc) field.ErrorList

func ValidateTrafficTopology

func ValidateTrafficTopology(
	obj *rolloutv1alpha1.TrafficTopology,
	isSupportedWorkload, isSupportedRoute, isSupportedBackend SupportedGVKFunc,
) field.ErrorList

func ValidateTrafficTopologySpec

func ValidateTrafficTopologySpec(
	spec *rolloutv1alpha1.TrafficTopologySpec,
	fldPath *field.Path,
	isSupportedWorkload, isSupportedRoute, isSupportedBackend SupportedGVKFunc,
) field.ErrorList

func ValidateWebhookURL added in v0.2.0

func ValidateWebhookURL(fldPath *field.Path, urlStr string, forceHttps bool) field.ErrorList

ValidateWebhookURL validates webhook's URL.

func ValidateWebhooks

func ValidateWebhooks(webhooks []rolloutv1alpha1.RolloutWebhook, fldPath *field.Path) field.ErrorList

func ValidateWorkloadRef

func ValidateWorkloadRef(ref *rolloutv1alpha1.WorkloadRef, fldPath *field.Path, isSupportedGVK SupportedGVKFunc) field.ErrorList

Types

type SupportedGVKFunc

type SupportedGVKFunc func(gvk schema.GroupVersionKind) bool

Jump to

Keyboard shortcuts

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