Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PodNodeSelectorMutator ¶ added in v0.6.0
type PodNodeSelectorMutator struct { // Client is used to fetch namespace metadata Client client.Reader // DefaultNodeSelector is the default node selector to apply to pods DefaultNodeSelector map[string]string // DefaultNamespaceNodeSelectorAnnotation is the annotation to use for the default node selector DefaultNamespaceNodeSelectorAnnotation string Skipper skipper.Skipper // contains filtered or unexported fields }
PodNodeSelectorMutator checks namespaces for allowed node selectors.
func (*PodNodeSelectorMutator) Handle ¶ added in v0.6.0
func (v *PodNodeSelectorMutator) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles the admission requests
func (*PodNodeSelectorMutator) InjectDecoder ¶ added in v0.6.0
func (v *PodNodeSelectorMutator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects a Admission request decoder
type RatioValidator ¶
type RatioValidator struct { Ratio ratioFetcher RatioLimit *resource.Quantity // contains filtered or unexported fields }
RatioValidator checks for every action in a namespace whether the Memory to CPU ratio limit is exceeded and will return a warning if it is.
func (*RatioValidator) InjectDecoder ¶
func (v *RatioValidator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects a Admission request decoder
Click to show internal directories.
Click to hide internal directories.