v1

package
v0.0.0-...-cadc115 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package v1 contains Pod Mutating Webhook handler which modifies Pod annotations to attach Linkerd-CNI via Multus Network Attachment Definition.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupWebhookWithManager

func SetupWebhookWithManager(mgr ctrl.Manager, controlPlaneNamespace, namespaceAllowedUIDsAnnotation string, linkerdProxyUIDOffset int)

SetupWebhookWithManager attaches PodAnnotator to a provided manager.

Types

type PodAnnotator

type PodAnnotator struct {
	Client client.Client
	// contains filtered or unexported fields
}

PodAnnotator adds Multus annotation to a Pod to attach Linkerd CNI via Multus.

func (*PodAnnotator) Handle

Handle implements WebHook handler. Checks if a Pod or its Namespace have "linkerd.io/multus" annotation and then appends to "k8s.v1.cni.cncf.io/networks" annotations the linkerd-cni network.

func (*PodAnnotator) InjectDecoder

func (a *PodAnnotator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects provided decoder to the WebHook instance.

Jump to

Keyboard shortcuts

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