nodeconfig

package
v0.0.0-...-f4dfa5d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OmittedValue = "********"
)

Variables

View Source
var (
	NodeArgsAnnotation       = version.Program + ".io/node-args"
	NodeEnvAnnotation        = version.Program + ".io/node-env"
	NodeConfigHashAnnotation = version.Program + ".io/node-config-hash"
	ClusterEgressLabel       = "egress." + version.Program + ".io/cluster"
)

Functions

func SetNodeConfigAnnotations

func SetNodeConfigAnnotations(nodeConfig *config.Node, node *corev1.Node) (bool, error)

SetNodeConfigAnnotations stores a redacted version of the k3s cli args and environment variables as annotations on the node object. It also stores a hash of the combined args + variables. These are used by other components to determine if the node configuration has been changed.

func SetNodeConfigLabels

func SetNodeConfigLabels(nodeConfig *config.Node, node *corev1.Node) (bool, error)

SetNodeConfigLabels adds labels for functionality flags that may not be present on down-level or up-level nodes. These labels are used by other components to determine whether or not a node supports particular functionality.

Types

This section is empty.

Jump to

Keyboard shortcuts

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