util

package
v1.22.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 294

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeRole

func GetNodeRole(node *v1.Node) string

func IsKubernetesGTE

func IsKubernetesGTE(version string, k8sVersion semver.Version) bool

func ParseKubernetesVersion

func ParseKubernetesVersion(version string) (*semver.Version, error)

func ParseTaint added in v1.22.4

func ParseTaint(st string) (map[string]string, error)

parseTaint takes a string and returns a map of its value it mimics the function from https://github.com/kubernetes/kubernetes/blob/master/pkg/util/taints/taints.go but returns a map instead of a v1.Taint

Types

This section is empty.

Jump to

Keyboard shortcuts

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