namespacerules

package
v0.0.0-...-c7825ed Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NSAnnotation = "shikanon.com/node-affinity"
)

Functions

func RegisterMutatingHandler

func RegisterMutatingHandler(mgr manager.Manager)

Types

type PodAffinityMutatingHandler

type PodAffinityMutatingHandler struct {
	Client ctrlClient.Client
	// contains filtered or unexported fields
}

MutatingHandler handles Component

func (*PodAffinityMutatingHandler) Handle

pod affinity mutating rule function, can read the namespace labels to set pod affinity

func (*PodAffinityMutatingHandler) InjectDecoder

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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