config

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 6 Imported by: 0

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

func LoadQOSConfigFromFile(filePath string) (*QOSConfig, error)

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 ScopeName

type ScopeName string

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.

Jump to

Keyboard shortcuts

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