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 RenderOperatingSystem(rel string, maj string, min 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
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 RenderOperatingSystem ¶
Given 3 labels from NFD returns the node OS version in 3 formats: <name><major>, <name><major>.<minor>, and <major.minor> For example rhel8, rhel8.2, 8.2 If the "rel" is rhcos it returns the rhel version that this rhcos version is based off of. This function will later be replaced as NFD will have separate labels for this information.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.