status

package
v1.0.60 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: BSD-3-Clause Imports: 15 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 Reporter

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

func NewReporter

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

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