Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateLabels ¶
func UpdateLabels(cr CustomResource, client string)
UpdateLabels adds missing labels to the resource
Types ¶
type CustomResource ¶
type CustomResource interface { GroupVersionKind() schema.GroupVersionKind GetName() string SetLabels(map[string]string) }
type Resources ¶
type Resources struct { // CPU is cpu cores the node requires CPU string `json:"cpu,omitempty"` // CPULimit is cpu cores the node is limited to CPULimit string `json:"cpuLimit,omitempty"` // Memory is memmory requirements Memory string `json:"memory,omitempty"` // MemoryLimit is cpu cores the node is limited to MemoryLimit string `json:"memoryLimit,omitempty"` // Storage is disk space storage requirements Storage string `json:"storage,omitempty"` // StorageClass is the volume storage class StorageClass *string `json:"storageClass,omitempty"` }
Resources is node compute and storage resources
func (*Resources) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (*Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Click to show internal directories.
Click to hide internal directories.