Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultAppRollout

func DefaultAppRollout(obj *v1beta1.AppRollout)

    DefaultAppRollout will set the default value for the AppRollout®

    func FindCommonComponent

    func FindCommonComponent(targetApp, sourceApp *v1alpha2.ApplicationConfiguration) []string

      FindCommonComponent finds the common components in both the source and target application the source can be nil

      func RegisterMutatingHandler

      func RegisterMutatingHandler(mgr manager.Manager)

        RegisterMutatingHandler will register component mutation handler to the webhook

        func RegisterValidatingHandler

        func RegisterValidatingHandler(mgr manager.Manager)

          RegisterValidatingHandler will register application configuration validation to webhook

          Types

          type MutatingHandler

          type MutatingHandler struct {
          	Client client.Client
          
          	// Decoder decodes objects
          	Decoder *admission.Decoder
          }

            MutatingHandler handles AppRollout

            func (*MutatingHandler) Handle

              Handle handles admission requests.

              func (*MutatingHandler) InjectClient

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

                InjectClient injects the client into the MutatingHandler

                func (*MutatingHandler) InjectDecoder

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

                  InjectDecoder injects the decoder into the MutatingHandler

                  type ValidatingHandler

                  type ValidatingHandler struct {
                  	client.Client
                  
                  	// Decoder decodes objects
                  	Decoder *admission.Decoder
                  }

                    ValidatingHandler handles AppRollout

                    func (*ValidatingHandler) Handle

                      Handle handles admission requests.

                      func (*ValidatingHandler) InjectClient

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

                        InjectClient injects the client into the ValidatingHandler

                        func (*ValidatingHandler) InjectDecoder

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

                          InjectDecoder injects the decoder into the ValidatingHandler

                          func (*ValidatingHandler) ValidateCreate

                          func (h *ValidatingHandler) ValidateCreate(appRollout *v1beta1.AppRollout) field.ErrorList

                            ValidateCreate validates the AppRollout on creation

                            func (*ValidatingHandler) ValidateUpdate

                            func (h *ValidatingHandler) ValidateUpdate(new, old *v1beta1.AppRollout) field.ErrorList

                              ValidateUpdate validates the AppRollout on update