Documentation
¶
Index ¶
- type ClusterMetadata
- type Metadata
- func (meta *Metadata) GetClusterMetadata() (ClusterMetadata, error)
- func (meta *Metadata) GetCurrentPodCount() (int, error)
- func (meta *Metadata) GetCurrentVMICount() (int, error)
- func (meta *Metadata) GetDefaultIngressDomain() (string, error)
- func (meta *Metadata) GetOCPVirtualizationVersion() (string, error)
- func (meta *Metadata) GetPrometheus() (string, string, error)
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,omitempty"` ClusterType string `json:"clusterType,omitempty"` OCPVersion string `json:"ocpVersion,omitempty"` OCPMajorVersion string `json:"ocpMajorVersion,omitempty"` K8SVersion string `json:"k8sVersion,omitempty"` MasterNodesType string `json:"masterNodesType,omitempty"` WorkerNodesType string `json:"workerNodesType,omitempty"` MasterNodesCount int `json:"masterNodesCount,omitempty"` InfraNodesType string `json:"infraNodesType,omitempty"` WorkerNodesCount int `json:"workerNodesCount,omitempty"` InfraNodesCount int `json:"infraNodesCount,omitempty"` OtherNodesCount int `json:"otherNodesCount,omitempty"` TotalNodes int `json:"totalNodes,omitempty"` SDNType string `json:"sdnType,omitempty"` ClusterName string `json:"clusterName,omitempty"` Region string `json:"region,omitempty"` Fips bool `json:"fips,omitempty"` Publish string `json:"publish,omitempty"` WorkerArch string `json:"workerArch,omitempty"` ControlPlaneArch string `json:"controlPlaneArch,omitempty"` Ipsec bool `json:"ipsec,omitempty"` IpsecMode string `json:"ipsecMode,omitempty"` }
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) GetCurrentVMICount ¶
Returns the number of current running VMIs in the cluster
func (*Metadata) GetDefaultIngressDomain ¶
GetDefaultIngressDomain returns default ingress domain of the default ingress controller
func (*Metadata) GetOCPVirtualizationVersion ¶
Click to show internal directories.
Click to hide internal directories.