hooks

package
v1.63.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CRITypeDocker           = "Docker"
	CRITypeContainerd       = "Containerd"
	NodeGroupDefaultCRIType = CRITypeContainerd
)
View Source
const (
	NodeGroupNameLabel                = "node.deckhouse.io/group"
	LastAppliedNodeTemplateAnnotation = "node-manager.deckhouse.io/last-applied-node-template"
	NodeUnininitalizedTaintKey        = "node.deckhouse.io/uninitialized"
)
View Source
const EpochWindowSize int64 = 4 * 60 * 60 // 4 hours

Variables

View Source
var NumPercentRegex = regexp.MustCompile(`^([0-9]+)%$`)

Functions

func ApplyTemplateMap

func ApplyTemplateMap(actual, template, lastApplied map[string]string) (map[string]string, bool)

ApplyTemplateMap return actual merged with template without excess keys.

func ExcessMapKeys

func ExcessMapKeys(a, b map[string]string) set.Set

ExcessMapKeys returns keys from a without keys from b.

Types

type CsrInfo

type CsrInfo struct {
	Name   string
	Valid  bool
	ErrMsg string
}

type InstanceClassCrdInfo

type InstanceClassCrdInfo struct {
	Name string
	Spec interface{}
}

type Machine added in v0.0.6

type Machine struct {
	Name             string
	Terminating      bool
	MachineClassKind string
	MachineClassName string
	// contains filtered or unexported fields
}

type MachineDeploymentCrdInfo

type MachineDeploymentCrdInfo struct {
	Name string
	Zone string
}

type Node added in v1.36.4

type Node struct {
	Name              string
	NodeGroup         string
	CreationTimestamp metav1.Time
}

type NodeGroupCrdInfo

type NodeGroupCrdInfo struct {
	Name            string
	Spec            ngv1.NodeGroupSpec
	ManualRolloutID string
}

type NodeGroupStatus added in v1.44.0

type NodeGroupStatus struct {
	Name  string
	Nodes int64
	Ready int64
}

type NodeSettings

type NodeSettings struct {
	Name        string
	NodeType    ngv1.NodeType
	NodeGroup   string
	Annotations map[string]string
	Labels      map[string]string
	Taints      []v1.Taint

	IsClusterAPINode bool
}

type StandbyNodeGroupForValues

type StandbyNodeGroupForValues struct {
	Name          string     `json:"name"`
	Standby       int        `json:"standby"`
	ReserveCPU    string     `json:"reserveCPU"`
	ReserveMemory string     `json:"reserveMemory"`
	Taints        []v1.Taint `json:"taints"`
}

type StandbyNodeGroupInfo

type StandbyNodeGroupInfo struct {
	Name                 string
	NeedStandby          bool
	MaxPerZone           int
	ZonesCount           int
	Standby              *intstr.IntOrString
	OverprovisioningRate int64
	Taints               []v1.Taint
}

type StandbyNodeInfo

type StandbyNodeInfo struct {
	Group             string
	AllocatableCPU    *resource.Quantity
	AllocatableMemory *resource.Quantity
	IsReady           bool
	IsUnschedulable   bool
	CreationTimestamp metav1.Time
}

type StandbyPodInfo

type StandbyPodInfo struct {
	Group   string
	IsReady bool
}

Directories

Path Synopsis
internal
capi/v1beta1
Package v1beta1 contains the v1beta1 API implementation.
Package v1beta1 contains the v1beta1 API implementation.
v1
pkg

Jump to

Keyboard shortcuts

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