Documentation ¶
Overview ¶
Package hostinfo provides functions to get annotations, labels, etc. from Kubernetes nodes.
Index ¶
Constants ¶
View Source
const ( // NormalizedRoleLabel is original Kubernetes label for role, we normalize the new one to this one NormalizedRoleLabel string = "kubernetes.io/role" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type KubeNodeTagsProvider ¶
type KubeNodeTagsProvider struct{}
KubeNodeTagsProvider allows computing node tags based on the user configurations for node labels and annotations as tags
func NewKubeNodeTagsProvider ¶
func NewKubeNodeTagsProvider(_ model.Reader) KubeNodeTagsProvider
NewKubeNodeTagsProvider creates and returns a new kube node tags provider object
type NodeInfo ¶
type NodeInfo struct { }
NodeInfo is use to get Kubernetes Node metadata information
func NewNodeInfo ¶
NewNodeInfo return a new NodeInfo instance return an error if it fails to access the kubelet client.
func (*NodeInfo) GetNodeClusterNameLabel ¶
GetNodeClusterNameLabel returns clustername by fetching a node label
Click to show internal directories.
Click to hide internal directories.