nodeconfig

package
v0.0.0-...-ca78c08 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 10 Imported by: 1 module, 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 (
	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(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(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