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) 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) 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) 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) InjectDecoder ¶
func (v *ServiceValidator) InjectDecoder(d *admission.Decoder) error
Click to show internal directories.
Click to hide internal directories.