shared

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 3 Imported by: 0

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

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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