webhook

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldpathField = "k3k.io/fieldpath"
)

Variables

This section is empty.

Functions

func AddPodMutatorWebhook

func AddPodMutatorWebhook(ctx context.Context, mgr manager.Manager, hostClient ctrlruntimeclient.Client, clusterName, clusterNamespace, nodeName, serviceName string, logger *log.Logger) error

AddPodMutatorWebhook will add a mutator webhook to the virtual cluster to modify the nodeName of the created pods with the name of the virtual kubelet node name as well as remove any status fields of the downward apis env fields

func ParseFieldPathAnnotationKey

func ParseFieldPathAnnotationKey(annotationKey string) (int, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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