hooks

package
v1.76.4 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: Apache-2.0 Imports: 78 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"

	HeartbeatAnnotationKey = "kubevirt.internal.virtualization.deckhouse.io/heartbeat"
	MetalLBmemberLabelKey  = "l2-load-balancer.network.deckhouse.io/member"
)
View Source
const (
	BashibleFirstRunFinishedLabel = "node.deckhouse.io/bashible-first-run-finished"
	BashibleUninitializedTaintKey = "node.deckhouse.io/bashible-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 AuthCertificate added in v1.76.0

type AuthCertificate struct {
	Cert string `json:"crt"`
	Key  string `json:"key"`
}

type CRD added in v1.71.0

type CRD struct {
	Name     string
	CABundle string
}

type CRDCAPI added in v1.75.0

type CRDCAPI struct {
	Name     string
	CABundle string
}

type CloudCondition added in v1.69.1

type CloudCondition struct {
	Name    string `json:"name"`
	Message string `json:"message"`
	Ok      bool   `json:"ok"`
}

type CloudFillerFunc added in v1.72.0

type CloudFillerFunc func(cloudVariables map[string]interface{}, instanceClass map[string]interface{}) error

cloud providers names in lower case

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

	NodeCreationTimestamp metav1.Time
	NodeGroup             string
}

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 NodeControllerService added in v1.75.0

type NodeControllerService struct {
	Name string
}

NodeControllerService holds the service name

type NodeGroupCRD added in v1.75.0

type NodeGroupCRD struct {
	Name     string
	CABundle string
}

NodeGroupCRD holds the CRD name and current CA bundle

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 NodeInfo added in v1.71.0

type NodeInfo struct {
	Name   string
	Labels map[string]string
}

type NodeSettings

type NodeSettings struct {
	Name        string            `json:"name"`
	NodeType    ngv1.NodeType     `json:"nodeType"`
	NodeGroup   string            `json:"-"`
	Annotations map[string]string `json:"annotations"`
	Labels      map[string]string `json:"labels"`
	Taints      []v1.Taint        `json:"taints"`

	IsClusterAPINode bool `json:"-"`
}

type NodesInfo added in v1.74.0

type NodesInfo struct {
	Name   string
	Labels map[string]string
	Taints []v1.Taint
}

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
}

type Svc added in v1.71.0

type Svc struct {
	Name string
}

Source Files

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