Documentation ¶
Index ¶
- Constants
- Variables
- func ApplyTemplateMap(actual, template, lastApplied map[string]string) (map[string]string, bool)
- func DecodeDataFromSecret(obj *unstructured.Unstructured) (map[string]interface{}, error)
- func ExcessMapKeys(a, b map[string]string) set.Set
- func SemverMajMin(ver *semver.Version) string
- func SemverMin(versions []*semver.Version) *semver.Version
- type CsrInfo
- type InstanceClassCrdInfo
- type MachineDeploymentCrdInfo
- type NodeGroupCrdInfo
- type NodeSettings
- type NodeUserInfo
- type StandbyNodeGroupForValues
- type StandbyNodeGroupInfo
- type StandbyNodeInfo
- type StandbyPodInfo
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 ¶
ApplyTemplateMap return actual merged with template without excess keys.
func DecodeDataFromSecret ¶
func DecodeDataFromSecret(obj *unstructured.Unstructured) (map[string]interface{}, error)
DecodeDataFromSecret returns data section from Secret. If possible, top level keys are converted from JSON.
func ExcessMapKeys ¶
ExcessMapKeys returns keys from a without keys from b.
func SemverMajMin ¶
func SemverMajMin(ver *semver.Version) string
SemverMajMin is a Go implementation of this bash snippet:
function semver::majmin() { echo "$(echo $1 | cut -d. -f1,2)" }
Types ¶
type InstanceClassCrdInfo ¶
type InstanceClassCrdInfo struct { Name string Spec interface{} }
type NodeGroupCrdInfo ¶
type NodeGroupCrdInfo struct { Name string Spec ngv1.NodeGroupSpec ManualRolloutID string }
type NodeSettings ¶
type NodeUserInfo ¶ added in v1.25.0
type NodeUserInfo struct { Name string `json:"name"` Spec v1alpha1.NodeUserSpec `json:"spec"` }
type StandbyNodeGroupInfo ¶
type StandbyNodeInfo ¶
type StandbyPodInfo ¶
Source Files ¶
- change_host_ip.go
- chaos_monkey.go
- convert_static_cluster_configuration.go
- deployment_required.go
- discover_apiserver_endpoints.go
- discover_cloud_provider.go
- discover_kubernetes_ca.go
- discover_standby_ng.go
- ensure_crds.go
- ensure_crds_node_group.go
- gen_bashible_apiserver_certs.go
- get_crds.go
- get_node_user_crds.go
- handle_node_templates.go
- kubelet_csr_approver.go
- machineclass_checksum_assign.go
- machineclass_checksum_collect.go
- node_status_update_frequency.go
- order_bootstrap_token.go
- remove_csi_taints.go
- set_instance_prefix.go
- set_provider_id_on_static_nodes.go
- set_replicas_on_machine_deployment.go
- update_approval.go
- update_draining.go
- update_node_group_status.go
- util.go
Click to show internal directories.
Click to hide internal directories.