validating

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HandlerMap contains admission webhook handlers
	HandlerMap = map[string]admission.Handler{
		"validate-rollouts-kruise-io-rollout": &RolloutCreateUpdateHandler{},
	}
)

Functions

func IsPercentageCanaryReplicasType

func IsPercentageCanaryReplicasType(replicas *intstr.IntOrString) bool

func IsSameV1alpha1WorkloadRefGVKName added in v0.5.0

func IsSameV1alpha1WorkloadRefGVKName(a, b *appsv1alpha1.WorkloadRef) bool

func IsSameWorkloadRefGVKName

func IsSameWorkloadRefGVKName(a, b *appsv1beta1.ObjectRef) bool

Types

type RolloutCreateUpdateHandler

type RolloutCreateUpdateHandler struct {
	// To use the client, you need to do the following:
	// - uncomment it
	// - import sigs.k8s.io/controller-runtime/pkg/client
	// - uncomment the InjectClient method at the bottom of this file.
	Client client.Client

	// Decoder decodes objects
	Decoder *admission.Decoder
}

RolloutCreateUpdateHandler handles Rollout

func (*RolloutCreateUpdateHandler) Handle

Handle handles admission requests.

func (*RolloutCreateUpdateHandler) InjectClient

func (h *RolloutCreateUpdateHandler) InjectClient(c client.Client) error

InjectClient injects the client into the RolloutCreateUpdateHandler

func (*RolloutCreateUpdateHandler) InjectDecoder

func (h *RolloutCreateUpdateHandler) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder into the RolloutCreateUpdateHandler

Jump to

Keyboard shortcuts

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