Documentation ¶
Index ¶
Constants ¶
View Source
const IDClusterClaim = "id.k8s.io"
Variables ¶
This section is empty.
Functions ¶
func Find ¶
func Find(slice []types.ManagedClusterInfo, val types.ManagedClusterInfo) (int, bool)
Find returns a bool if the item exists in the given slice
func GetClusterClaimInfo ¶
func GetClusterClaimInfo(managedCluster *clusterv1.ManagedCluster) (string, int64, string)
GetClusterClaimInfo return the ManagedCluster vendor, version and ID
Types ¶
type Monitor ¶
type Monitor struct { ManagedClusterInfo []types.ManagedClusterInfo ClusterNeedsCCX map[string]bool ClusterPollInterval time.Duration // How often we want to update managed cluster list }
Monitor struct
func (*Monitor) AddLocalCluster ¶
func (m *Monitor) AddLocalCluster(versionObj *unstructured.Unstructured) bool
AddLocalCluster - adds local cluster to Clusters list
func (*Monitor) GetLocalCluster ¶
GetLocalCluster - GET ID from Clusters list
func (*Monitor) GetManagedClusterInfo ¶
func (m *Monitor) GetManagedClusterInfo() []types.ManagedClusterInfo
Getter for ManagedClusterInfo
func (*Monitor) WatchClusters ¶
func (m *Monitor) WatchClusters()
WatchClusters - Watches ManagedCluster objects and updates clusterID list for Insights call.
Click to show internal directories.
Click to hide internal directories.