status

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Count          int32
	Message        string
	Node           string
	FirstTimestamp time.Time
	LastTimestamp  time.Time
	Type           string
}

type Reader added in v1.1.11

type Reader interface {
	Status(release terra.Release) (*Status, error)
	Statuses(releases []terra.Release) (map[terra.Release]*Status, error)
}

Reader can read the status of a release from Kubernetes and ArgoCD

func NewReporter

func NewReporter(argocd argocd.ArgoCD, kubeclients k8sclients.Clients) Reader

type Resource

type Resource struct {
	argocd.Resource
	Events []Event `yaml:",omitempty"`
}

type Status

type Status struct {
	Health             argocd.HealthStatus
	Sync               argocd.SyncStatus
	UnhealthyResources []Resource `yaml:"resources,omitempty"`
}

func (Status) Headline

func (s Status) Headline() string

func (Status) IsHealthy

func (s Status) IsHealthy() bool

Jump to

Keyboard shortcuts

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