Documentation ¶
Overview ¶
Package status implements the kubectl-cnpg status command
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PostgresqlStatus ¶
type PostgresqlStatus struct { // Cluster is the Cluster we are investigating Cluster *apiv1.Cluster `json:"cluster"` // InstanceStatus is the status of each instance, extracted directly // from the instance manager running into each Pod InstanceStatus *postgres.PostgresqlStatusList `json:"instanceStatus"` // PrimaryPod contains the primary Pod PrimaryPod corev1.Pod // PodDisruptionBudgetList prints every PDB that matches against the cluster // with the label selector PodDisruptionBudgetList policyv1.PodDisruptionBudgetList }
PostgresqlStatus contains the status of the Cluster and of all its instances
func ExtractPostgresqlStatus ¶
func ExtractPostgresqlStatus(ctx context.Context, clusterName string) (*PostgresqlStatus, error)
ExtractPostgresqlStatus gets the PostgreSQL status using the Kubernetes API
Click to show internal directories.
Click to hide internal directories.