Documentation ¶
Index ¶
- func Annotate(obj *unstructured.Unstructured) error
- func AnnotationEqual(new *unstructured.Unstructured, old *unstructured.Unstructured) (bool, error)
- func CreateNodesList(numNodes int, labels map[string]string) *corev1.NodeList
- func FNV64a(s string) (string, error)
- func FindCRFile(a []*chart.File, x string) int
- func ParseOSInfo(osImagePretty string) (string, string, string, error)
- func SetTaint(node *corev1.Node, taintKey, taintValue string, taintEffect corev1.TaintEffect)
- func StringSliceContains(a []string, x string) bool
- func StringSliceFind(a []string, x string) int
- func StringSliceInsert(a []string, index int, value string) []string
- func WarnString(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Annotate ¶
func Annotate(obj *unstructured.Unstructured) error
func AnnotationEqual ¶
func AnnotationEqual(new *unstructured.Unstructured, old *unstructured.Unstructured) (bool, error)
func CreateNodesList ¶
func ParseOSInfo ¶
ParseOSInfo takes a pretty format string for the OS version (e.g. Red Hat Enterprise Linux CoreOS 49.84.202201102104-0 (Ootpa)) and returns the cluster version, OS version in \d\.\d format, plus major version for the OS.
func SetTaint ¶
func SetTaint(node *corev1.Node, taintKey, taintValue string, taintEffect corev1.TaintEffect)
func StringSliceContains ¶
Contains tells whether a contains x.
func StringSliceFind ¶
Find returns the smallest index i at which x == a[i], or len(a) if there is no such index.
func WarnString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.