status

package
v1.15.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package status provides the logic for the `status` command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentStatus

type ComponentStatus struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Ready     bool   `json:"ready"`
	Message   string `json:"message,omitempty"`
}

ComponentStatus represents the health status of a single component.

type OperatorStatus

type OperatorStatus struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Version   string `json:"version,omitempty"`
	Ready     bool   `json:"ready"`
	Message   string `json:"message,omitempty"`
}

OperatorStatus represents the health status of a database operator.

type OverallStatus

type OverallStatus struct {
	EverestVersion string            `json:"everestVersion"`
	Healthy        bool              `json:"healthy"`
	Components     []ComponentStatus `json:"components"`
	Operators      []OperatorStatus  `json:"operators"`
	Namespaces     []string          `json:"namespaces"`
}

OverallStatus represents the overall health status of Everest.

type Status

type Status struct {
	// contains filtered or unexported fields
}

Status provides the functionality to check Everest health.

func NewStatus

func NewStatus(cfg StatusConfig, l *zap.SugaredLogger) (*Status, error)

NewStatus returns a new Status struct.

func (*Status) Run

func (s *Status) Run(ctx context.Context) error

Run executes the status check.

type StatusConfig

type StatusConfig struct {
	// KubeconfigPath is the path to the kubeconfig file.
	KubeconfigPath string
	// Pretty if set print the output in pretty mode.
	Pretty bool
	// JSON if set print the output in JSON mode.
	JSON bool
}

StatusConfig holds the configuration for the `status` command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL