validationwebhooks

package
v0.0.0-...-c6746c1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploymentNamingKind = "deployment.naming"

	ImageKind = "image"

	DeploymentLimitsKind = "deployment.limits"

	NamespaceNamingKind = "namespace.naming"

	ServiceNamingKind = "service.naming"

	ConfigmapNamingKind = "configmap.naming"

	DeploymentLimitRangeKind = "deployment.resources.limitRangeSpec"

	DeploymentResourceQuatoKind = "deployment.resources.resourceQuato"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigmapValidator

type ConfigmapValidator struct {
	Client client.Client

	ConfPath string
	// contains filtered or unexported fields
}

func (*ConfigmapValidator) Handle

func (*ConfigmapValidator) InjectDecoder

func (v *ConfigmapValidator) InjectDecoder(d *admission.Decoder) error

type DeploymentValidator

type DeploymentValidator struct {
	Client client.Client

	ConfPath string
	// contains filtered or unexported fields
}

DeploymentValidator validates deployment

func (*DeploymentValidator) Handle

Handle podValidator admits a pod if a specific annotation exists.

func (*DeploymentValidator) InjectDecoder

func (v *DeploymentValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type ImageValidator

type ImageValidator struct {
	Client client.Client

	ConfPath string
	// contains filtered or unexported fields
}

DeploymentValidator validates deployment

func (*ImageValidator) Handle

Handle imageValidator admits a pod if a specific annotation exists.

func (*ImageValidator) InjectDecoder

func (v *ImageValidator) InjectDecoder(d *admission.Decoder) error

InjectDecoder injects the decoder.

type NamespaceValidator

type NamespaceValidator struct {
	Client client.Client

	ConfPath string
	// contains filtered or unexported fields
}

func (*NamespaceValidator) Handle

func (*NamespaceValidator) InjectDecoder

func (v *NamespaceValidator) InjectDecoder(d *admission.Decoder) error

type ServiceValidator

type ServiceValidator struct {
	Client client.Client

	ConfPath string
	// contains filtered or unexported fields
}

func (*ServiceValidator) Handle

func (*ServiceValidator) InjectDecoder

func (v *ServiceValidator) InjectDecoder(d *admission.Decoder) error

Jump to

Keyboard shortcuts

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