common

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package common contains variables that are used in controller code and in other places too the reason of that package is to avoid conflict during initialization k8s client for e2e test

Index

Constants

View Source
const (

	// DeafultNodeIDAnnotationKey hold special ID for node object if external annotaion is not used
	DeafultNodeIDAnnotationKey = nodeKey + "/uuid"
	// NodeIDTopologyLabelKey used as a label key in external component csi-provisioner
	NodeIDTopologyLabelKey = DeafultNodeIDAnnotationKey
)

Variables

This section is empty.

Functions

func GetNodeID

func GetNodeID(k8sNode *corev1.Node, annotationKey string, featureChecker featureconfig.FeatureChecker) (string, error)

GetNodeID return special id for k8sNode depends on NodeIdFromAnnotation and ExternalNodeAnnotation features

func GetNodeIDByName

func GetNodeIDByName(client k8sClient.Client, nodeName string, annotationKey string, featureChecker featureconfig.FeatureChecker) (string, error)

GetNodeIDByName return special id for k8sNode with nodeName depends on NodeIdFromAnnotation and ExternalNodeAnnotation features

Types

This section is empty.

Jump to

Keyboard shortcuts

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