hooks

package
v1.69.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2025 License: Apache-2.0 Imports: 69 Imported by: 0

Documentation

Overview

Copyright 2025 Flant JSC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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 (
	CheckCloudProviderConfigRaw = "checkCloudProviderConfigRaw"
)
View Source
const (
	CheckClusterConfigRaw = "checkClusterConfigRaw"
)
View Source
const (
	CheckStaticClusterConfigRaw = "checkStaticClusterConfigRaw"
)
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 CheckCloudProviderConfig added in v1.69.0

func CheckCloudProviderConfig(input *go_hook.HookInput) error

func CheckClusterConfig added in v1.69.0

func CheckClusterConfig(input *go_hook.HookInput) error

func CheckStaticClusterConfig added in v1.69.0

func CheckStaticClusterConfig(input *go_hook.HookInput) error

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            `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 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