Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClusterHealth ¶
type ClusterHealth struct { Operator bool `json:"operator"` ControllerManager bool `json:"controller_manager"` Prometheus bool `json:"prometheus"` Autoscaler bool `json:"autoscaler"` Activator bool `json:"activator"` AsyncGateway bool `json:"async_gateway"` Grafana bool `json:"grafana"` OperatorGateway bool `json:"operator_gateway"` APIsGateway bool `json:"apis_gateway"` ClusterAutoscaler bool `json:"cluster_autoscaler"` OperatorLoadBalancer bool `json:"operator_load_balancer"` APIsLoadBalancer bool `json:"apis_load_balancer"` FluentBit bool `json:"fluent_bit"` NodeExporter bool `json:"node_exporter"` DCGMExporter bool `json:"dcgm_exporter"` StatsDExporter bool `json:"statsd_exporter"` EventExporter bool `json:"event_exporter"` KubeStateMetrics bool `json:"kube_state_metrics"` }
ClusterHealth represents the healthiness of each component of a cluster
func Check ¶
func Check(awsClient *awslib.Client, k8sClient *k8s.Client, clusterName string) (ClusterHealth, error)
Check checks for the health of the different components of a cluster
func (ClusterHealth) String ¶
func (c ClusterHealth) String() string
type ClusterWarnings ¶
type ClusterWarnings struct {
Prometheus string
}
func GetWarnings ¶
func GetWarnings(k8sClient *k8s.Client) (ClusterWarnings, error)
func (ClusterWarnings) HasWarnings ¶
func (w ClusterWarnings) HasWarnings() bool
HasWarnings checks if ClusterWarnings has any warnings in its' fields
Click to show internal directories.
Click to hide internal directories.