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 ¶
func (h *RolloutCreateUpdateHandler) Handle(ctx context.Context, req admission.Request) admission.Response
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
Click to show internal directories.
Click to hide internal directories.