Documentation
¶
Index ¶
- func GetAgentName() string
- func GetAutonomyAnnotation() string
- func GetEdgeEnableTunnelLabelKey() string
- func GetEdgeWorkerLabelKey() string
- func GetHubLeaderConfigMapLabel() string
- func GetHubName() string
- func GetHubleaderConfigMapName(nodepoolName string) string
- func GetNodeAutonomyDurationAnnotation() string
- func GetNodePoolLabel() string
- func GetProjectPrefix() string
- func GetServerName() string
- func GetTunnelName() string
- func GetYurtManagerName() string
- func RegisterVersionInfo(reg prometheus.Registerer, componentName string)
- func ShortAgentVersion() string
- func ShortHubVersion() string
- func ShortServerVersion() string
- func YurtTunnelServerLabel() string
- type Info
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAutonomyAnnotation ¶ added in v0.6.0
func GetAutonomyAnnotation() string
GetAutonomyAnnotation returns annotation key for node autonomy
func GetEdgeEnableTunnelLabelKey ¶
func GetEdgeEnableTunnelLabelKey() string
GetEdgeEnableTunnelLabelKey returns the tunnel agent label ("openyurt.io/edge-enable-reverseTunnel-client"), which is used to identify if tunnel agent is running on the node or not.
func GetEdgeWorkerLabelKey ¶
func GetEdgeWorkerLabelKey() string
GetEdgeWorkerLabelKey returns the edge-worker label ("openyurt.io/is-edge-worker"), which is used to identify if a node is a edge node ("true") or a cloud node ("false")
func GetHubLeaderConfigMapLabel ¶ added in v1.7.0
func GetHubLeaderConfigMapLabel() string
GetHubLeaderConfigMapLabel returns the label of the leader ConfigMap for the nodepool
func GetHubleaderConfigMapName ¶ added in v1.7.0
GetHubleaderConfigMapName returns the name of the leader ConfigMap for the nodepool
func GetNodeAutonomyDurationAnnotation ¶ added in v1.7.0
func GetNodeAutonomyDurationAnnotation() string
GetNodeAutonomyDurationAnnotation returns annotation key for node autonomy duration
func GetNodePoolLabel ¶ added in v1.5.0
func GetNodePoolLabel() string
GetNodePoolLabel returns label for specifying nodepool
func GetYurtManagerName ¶ added in v1.3.0
func GetYurtManagerName() string
GetYurtManagerName returns name of openyurt-manager: yurt-manager
func RegisterVersionInfo ¶ added in v1.5.0
func RegisterVersionInfo(reg prometheus.Registerer, componentName string)
func ShortAgentVersion ¶
func ShortAgentVersion() string
func ShortHubVersion ¶ added in v1.7.0
func ShortHubVersion() string
func ShortServerVersion ¶
func ShortServerVersion() string
func YurtTunnelServerLabel ¶ added in v0.6.0
func YurtTunnelServerLabel() string
tunnel server label: yurt-tunnel-server
Types ¶
type Info ¶
type Info struct {
GitVersion string `json:"gitVersion"`
GitCommit string `json:"gitCommit"`
BuildDate string `json:"buildDate"`
GoVersion string `json:"goVersion"`
Compiler string `json:"compiler"`
Platform string `json:"platform"`
AllVersions []string `json:"allVersions"`
NodePoolLabelKey string `json:"nodePoolLabelKey"`
}
Info contains version information.