webhooks

package
v1.21.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckGatewayAndIngressProtocol

func CheckGatewayAndIngressProtocol(tg gemsv1beta1.TenantGateway, ingresses []networkingv1.Ingress) error

func CreateDefaultTenantGateway

func CreateDefaultTenantGateway(client client.Client, log logr.Logger)

func GetLabelInjectorMutateHandler

func GetLabelInjectorMutateHandler(client *client.Client, log *logr.Logger) *webhook.Admission

func GetMutateHandler

func GetMutateHandler(client *client.Client, log *logr.Logger, repo string) *webhook.Admission

func GetValidateHandler

func GetValidateHandler(client *client.Client, log *logr.Logger) *webhook.Admission

func IsGatewayHTTP2

func IsGatewayHTTP2(tg gemsv1beta1.TenantGateway) bool

func IsIngressGRPC

func IsIngressGRPC(ingress networkingv1.Ingress) bool

Types

type LabelInjectorMutate

type LabelInjectorMutate struct {
	Client client.Client

	Log logr.Logger
	// contains filtered or unexported fields
}

func (*LabelInjectorMutate) CommonInjectLabel

func (r *LabelInjectorMutate) CommonInjectLabel(ctx context.Context, req admission.Request) admission.Response

func (*LabelInjectorMutate) Handle

func (*LabelInjectorMutate) InjectDecoder

func (r *LabelInjectorMutate) InjectDecoder(d *admission.Decoder) error

type ResourceMutate

type ResourceMutate struct {
	Client client.Client

	Log  logr.Logger
	Repo string
	// contains filtered or unexported fields
}

func (*ResourceMutate) Handle

func (*ResourceMutate) InjectDecoder

func (r *ResourceMutate) InjectDecoder(d *admission.Decoder) error

func (*ResourceMutate) MutateDaemonSet

func (r *ResourceMutate) MutateDaemonSet(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateDeployment

func (r *ResourceMutate) MutateDeployment(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateEnvironment

func (r *ResourceMutate) MutateEnvironment(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateIngress

func (r *ResourceMutate) MutateIngress(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateStatefulSet

func (r *ResourceMutate) MutateStatefulSet(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateTenantGateway

func (r *ResourceMutate) MutateTenantGateway(ctx context.Context, req admission.Request) admission.Response

func (*ResourceMutate) MutateTenantResourceQuota

func (r *ResourceMutate) MutateTenantResourceQuota(ctx context.Context, req admission.Request) admission.Response

type ResourceValidate

type ResourceValidate struct {
	Client client.Client

	Log logr.Logger
	// contains filtered or unexported fields
}

func (*ResourceValidate) Handle

func (*ResourceValidate) InjectDecoder

func (r *ResourceValidate) InjectDecoder(d *admission.Decoder) error

func (*ResourceValidate) ValidateEnvironment

func (r *ResourceValidate) ValidateEnvironment(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateIstioGateway

func (r *ResourceValidate) ValidateIstioGateway(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateNamespace

func (r *ResourceValidate) ValidateNamespace(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateTenant

func (r *ResourceValidate) ValidateTenant(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateTenantGateway

func (r *ResourceValidate) ValidateTenantGateway(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateTenantNetworkPolicy

func (r *ResourceValidate) ValidateTenantNetworkPolicy(ctx context.Context, req admission.Request) admission.Response

func (*ResourceValidate) ValidateTenantResourceQuota

func (r *ResourceValidate) ValidateTenantResourceQuota(ctx context.Context, req admission.Request) admission.Response

Jump to

Keyboard shortcuts

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