Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterName ¶
GetClusterName returns the cluster name associated with the current context in ~/.kube/config
Types ¶
type ClusterStatus ¶
type ClusterStatus int
const ( Unknown ClusterStatus = iota Unmodified FluxInstalled WeGOInstalled )
func GetClusterStatus ¶
func GetClusterStatus() ClusterStatus
GetClusterStatus retrieves the current wego status of the cluster. That is, it returns one of: Unknown, Unmodified, FluxInstalled, or WeGOInstalled depending on whether the cluster: - refuses to be queried - has nothing installed - has flux installed - has wego installed
func (ClusterStatus) String ¶
func (cs ClusterStatus) String() string
Function to translate ClusterStatus to a string
Click to show internal directories.
Click to hide internal directories.