Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QOSConfig ¶
type QOSConfig struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta QOSInitializer QOSInitializer `json:"qosInitializer,omitempty"` }
QOSConfig represents the configuration for QOS.
func LoadQOSConfigFromFile ¶
type QOSInitializer ¶
type QOSInitializer struct { // Enable the QoS Initializer Enable bool `json:"enable,omitempty"` // LabelSelector is a label query over pods that should match the PodQOS Selector *metav1.LabelSelector `json:"selector,omitempty"` // A scope selector represents the AND of the selectors represented // by the scoped-resource selector requirements. ScopeSelector *ScopeSelector `json:"scopeSelector,omitempty"` // Container Template for injection InitContainerTemplate *corev1.Container `json:"initContainerTemplate,omitempty"` // Volume Template for injection VolumeTemplate *corev1.Volume `json:"volumeTemplate,omitempty"` }
type ScopeSelector ¶
type ScopeSelector struct { // A list of scope selector requirements by scope of the resources. // +optional MatchExpressions []ScopedResourceSelectorRequirement `json:"matchExpressions,omitempty"` }
type ScopedResourceSelectorRequirement ¶
type ScopedResourceSelectorRequirement struct { // The name of the scope that the selector applies to. ScopeName ScopeName `json:"scopeName"` // Represents a scope's relationship to a set of values. // Valid operators are In, NotIn. Operator corev1.ScopeSelectorOperator `json:"operator"` // An array of string values. If the operator is In or NotIn, // the values array must be non-empty. // This array is replaced during a strategic merge patch. // +optional Values []string `json:"values,omitempty"` }
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
Click to show internal directories.
Click to hide internal directories.