admission

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PodNodeSelector = map[string]string{
		"nebula.puppet.com/scheduling.customer-ready": "true",
	}
	PodTolerations = []corev1.Toleration{
		{
			Key:    "nebula.puppet.com/scheduling.customer-workload",
			Value:  "true",
			Effect: corev1.TaintEffectNoSchedule,
		},
		{
			Key:    "sandbox.gke.io/runtime",
			Value:  "gvisor",
			Effect: corev1.TaintEffectNoSchedule,
		},
	}
	PodDNSPolicy = corev1.DNSNone
	PodDNSConfig = &corev1.PodDNSConfig{
		Nameservers: []string{
			"1.1.1.1",
			"1.0.0.1",
			"8.8.8.8",
		},
	}
)

Functions

This section is empty.

Types

type PodEnforcementHandler

type PodEnforcementHandler struct {
	// contains filtered or unexported fields
}

func NewPodEnforcementHandler

func NewPodEnforcementHandler(opts ...PodEnforcementHandlerOption) *PodEnforcementHandler

func (*PodEnforcementHandler) Handle

func (*PodEnforcementHandler) InjectDecoder

func (peh *PodEnforcementHandler) InjectDecoder(d *admission.Decoder) error

type PodEnforcementHandlerOption

type PodEnforcementHandlerOption func(peh *PodEnforcementHandler)

func PodEnforcementHandlerWithRuntimeClassName

func PodEnforcementHandlerWithRuntimeClassName(runtimeClassName string) PodEnforcementHandlerOption

func PodEnforcementHandlerWithStandaloneMode

func PodEnforcementHandlerWithStandaloneMode(standalone bool) PodEnforcementHandlerOption

Jump to

Keyboard shortcuts

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