applicationdeployment

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultApplicationDeployment

func DefaultApplicationDeployment(obj *v1alpha2.ApplicationDeployment)

DefaultApplicationDeployment will set the default value for the ApplicationDeployment

func FindCommonComponent

func FindCommonComponent(targetApp, sourceApp *v1alpha2.Application) []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 ApplicationDeployment

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 ApplicationDeployment

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(appDeploy *v1alpha2.ApplicationDeployment) field.ErrorList

ValidateCreate validates the ApplicationDeployment on creation

func (*ValidatingHandler) ValidateUpdate

func (h *ValidatingHandler) ValidateUpdate(new, old *v1alpha2.ApplicationDeployment) field.ErrorList

ValidateUpdate validates the ApplicationDeployment on update

Jump to

Keyboard shortcuts

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