Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterMetadata ¶
type ClusterMetadata struct { MetricName string `json:"metricName,omitempty"` Platform string `json:"platform"` OCPVersion string `json:"ocpVersion"` OCPMajorVersion string `json:"ocpMajorVersion"` K8SVersion string `json:"k8sVersion"` MasterNodesType string `json:"masterNodesType"` WorkerNodesType string `json:"workerNodesType"` MasterNodesCount int `json:"masterNodesCount"` InfraNodesType string `json:"infraNodesType"` WorkerNodesCount int `json:"workerNodesCount"` InfraNodesCount int `json:"infraNodesCount"` OtherNodesCount int `json:"otherNodesCount"` TotalNodes int `json:"totalNodes"` SDNType string `json:"sdnType"` ClusterName string `json:"clusterName"` Region string `json:"region"` }
Type to store cluster metadata
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata object
func NewMetadata ¶
NewMetadata instantiates a new OCP metadata discovery agent
func (*Metadata) GetClusterMetadata ¶
func (meta *Metadata) GetClusterMetadata() (ClusterMetadata, error)
GetClusterMetadata returns a clusterMetadata object from the given OCP cluster
func (*Metadata) GetCurrentPodCount ¶
GetCurrentPodCount returns the number of current running pods across all worker nodes
func (*Metadata) GetDefaultIngressDomain ¶
GetDefaultIngressDomain returns default ingress domain of the default ingress controller
Click to show internal directories.
Click to hide internal directories.