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.
Click to show internal directories.
Click to hide internal directories.