deploy

package
v0.6.1 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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mutate

func Mutate(deploy *appsv1.Deployment, sliceName string) *appsv1.Deployment

func NewWebhookClient

func NewWebhookClient() *webhookClient

Types

type SliceInfoProvider

type SliceInfoProvider interface {
	SliceAppNamespaceConfigured(ctx context.Context, slice string, namespace string) (bool, error)
	GetNamespaceLabels(ctx context.Context, client client.Client, namespace string) (map[string]string, error)
}

type WebhookServer

type WebhookServer struct {
	Client client.Client

	SliceInfoClient SliceInfoProvider
	// contains filtered or unexported fields
}

func (*WebhookServer) Handle

func (*WebhookServer) InjectDecoder

func (wh *WebhookServer) InjectDecoder(d *admission.Decoder) error

func (*WebhookServer) MutationRequired

func (wh *WebhookServer) MutationRequired(metadata metav1.ObjectMeta) (bool, string)

Jump to

Keyboard shortcuts

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