key

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelNodeOperatorVersion = "node-operator.giantswarm.io/version"
)

Variables

This section is empty.

Functions

func ClusterEndpointFromDrainerConfig

func ClusterEndpointFromDrainerConfig(drainerConfig v1alpha1.DrainerConfig) string

func ClusterIDFromDrainerConfig

func ClusterIDFromDrainerConfig(drainerConfig v1alpha1.DrainerConfig) string

func IsCriticalPod

func IsCriticalPod(podName string) bool

func IsDaemonSetPod

func IsDaemonSetPod(pod v1.Pod) bool

func IsEvictedPod

func IsEvictedPod(pod v1.Pod) bool

func IsWrongTypeError

func IsWrongTypeError(err error) bool

IsWrongTypeError asserts wrongTypeError.

func LabelsDoNotIncludeNodeOperatorVersion

func LabelsDoNotIncludeNodeOperatorVersion(labels labels.Labels) bool

LabelsDoNotIncludeNodeOperatorVersion returns true if the node-operator version label is not present in the given set of labels. This was added to allow node-operator to reconcile "old" DrainerConfigs, which were versioned using their VersionBundle version, and prevent it from reconciling possible future DrainerConfigs, which would be versioned using the label. For more info, see https://github.com/giantswarm/giantswarm/issues/15423.

func NodeNameFromDrainerConfig

func NodeNameFromDrainerConfig(drainerConfig v1alpha1.DrainerConfig) string

func ToDrainerConfig

func ToDrainerConfig(v interface{}) (v1alpha1.DrainerConfig, error)

func VersionBundleVersionFromDrainerConfig

func VersionBundleVersionFromDrainerConfig(drainerConfig v1alpha1.DrainerConfig) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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