shoot

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0, MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WebhookName is the name of the shoot webhook.
	WebhookName = "shoot"
	// KindSystem is used for webhooks which should only apply to the to the kube-system namespace.
	KindSystem = "system"
)

Variables

This section is empty.

Functions

func Add

Add creates a new shoot webhook and adds it to the given Manager.

func EnsureNetworkPolicy

func EnsureNetworkPolicy(ctx context.Context, c client.Client, namespace, providerName string, port int) error

EnsureNetworkPolicy ensures that the required network policy that allows the kube-apiserver running in the given namespace to talk to the extension webhook is installed.

func GetNetworkPolicyMeta

func GetNetworkPolicyMeta(namespace, providerName string) *networkingv1.NetworkPolicy

GetNetworkPolicyMeta returns the network policy object with filled meta data.

Types

type AddArgs

type AddArgs struct {
	// Types is a list of resource types.
	Types []runtime.Object
	// Mutator is a mutator to be used by the admission handler. It doesn't need the shoot client.
	Mutator extensionswebhook.Mutator
	// MutatorWithShootClient is a mutator to be used by the admission handler. It needs the shoot client.
	MutatorWithShootClient extensionswebhook.MutatorWithShootClient
}

AddArgs are arguments for adding a shoot webhook to a manager.

Jump to

Keyboard shortcuts

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