Documentation
¶
Index ¶
Constants ¶
View Source
const OpenshiftNodeSelectorAnnotation = "openshift.io/node-selector"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NamespaceNodeSelectorValidator ¶ added in v0.5.0
type NamespaceNodeSelectorValidator struct {
Skipper skipper.Skipper
AllowedNodeSelectors *validate.AllowedLabels
// DenyEmptyNodeSelector denies namespaces with an existing but empty node selector.
DenyEmptyNodeSelector bool
// contains filtered or unexported fields
}
NamespaceNodeSelectorValidator checks namespaces for allowed node selectors.
func (*NamespaceNodeSelectorValidator) Handle ¶ added in v0.5.0
func (v *NamespaceNodeSelectorValidator) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles the admission requests
func (*NamespaceNodeSelectorValidator) InjectDecoder ¶ added in v0.5.0
func (v *NamespaceNodeSelectorValidator) 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
type WorkloadNodeSelectorValidator ¶ added in v0.5.0
type WorkloadNodeSelectorValidator struct {
Skipper skipper.Skipper
AllowedNodeSelectors *validate.AllowedLabels
// contains filtered or unexported fields
}
WorkloadNodeSelectorValidator checks workloads for allowed node selectors.
func (*WorkloadNodeSelectorValidator) Handle ¶ added in v0.5.0
func (v *WorkloadNodeSelectorValidator) Handle(ctx context.Context, req admission.Request) admission.Response
Handle handles the admission requests
func (*WorkloadNodeSelectorValidator) InjectDecoder ¶ added in v0.5.0
func (v *WorkloadNodeSelectorValidator) InjectDecoder(d *admission.Decoder) error
InjectDecoder injects a Admission request decoder
Click to show internal directories.
Click to hide internal directories.