status

package
v1.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Config added in v1.17.0

type Config 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
}

Config holds the configuration for the `status` command.

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 Config, 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.

Jump to

Keyboard shortcuts

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