status

package
v0.0.0-...-c7d747a Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgoGroup   = "argoproj.io"
	Rollout     = "Rollout"
	Degraded    = "Degraded"
	Failed      = "Failed"
	Healthy     = "Healthy"
	Paused      = "Paused"
	Progressing = "Progressing"
)
View Source
const (
	ConditionReady = "Ready"
)

Variables

This section is empty.

Functions

func NewConfigConnectorStatusReader

func NewConfigConnectorStatusReader(mapper meta.RESTMapper) engine.StatusReader

func NewRolloutStatusReader

func NewRolloutStatusReader(mapper meta.RESTMapper) engine.StatusReader

func NewStatusPoller

func NewStatusPoller(f util.Factory) (*polling.StatusPoller, error)

func NewStatusWatcher

func NewStatusWatcher(f util.Factory) (watcher.StatusWatcher, error)

Types

type ConfigConnectorStatusReader

type ConfigConnectorStatusReader struct {
	Mapper meta.RESTMapper
}

ConfigConnectorStatusReader can compute reconcile status for Config Connector resources. It leverages information in the `Reason` field of the `Ready` condition. TODO(mortent): Make more of the convencience functions and types from cli-utils exported so we can simplify this.

func (*ConfigConnectorStatusReader) Compute

func (*ConfigConnectorStatusReader) ReadStatus

func (*ConfigConnectorStatusReader) ReadStatusForObject

func (*ConfigConnectorStatusReader) Supports

Supports returns true for all Config Connector resources.

type RolloutStatusReader

type RolloutStatusReader struct {
	Mapper meta.RESTMapper
}

func (*RolloutStatusReader) Compute

func (*RolloutStatusReader) ReadStatus

func (*RolloutStatusReader) ReadStatusForObject

func (*RolloutStatusReader) Supports

func (r *RolloutStatusReader) Supports(gk schema.GroupKind) bool

Supports returns true for all rollout resources.

Jump to

Keyboard shortcuts

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