info

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IconWaiting     = "◷"
	IconProgressing = "◌"
	IconWarning     = "⚠"
	IconUnknown     = "?"
	IconOK          = "✔"
	IconBad         = "✖"
	IconPaused      = "॥"
	IconNeutral     = "•"
)
View Source
const (
	InfoTagCanary  = "canary"
	InfoTagStable  = "stable"
	InfoTagActive  = "active"
	InfoTagPreview = "preview"
)

Variables

This section is empty.

Functions

func RolloutStatusString

func RolloutStatusString(ro *v1alpha1.Rollout) string

RolloutStatusString returns a status string to print in the STATUS column

Types

type AnalysisRunInfo

type AnalysisRunInfo struct {
	Metadata
	Icon         string
	Revision     int
	Status       string
	Successful   int32
	Failed       int32
	Inconclusive int32
	Error        int32
	Jobs         []JobInfo
}

type ExperimentInfo

type ExperimentInfo struct {
	Metadata
	Icon         string
	Revision     int
	Status       string
	Message      string
	ReplicaSets  []ReplicaSetInfo
	AnalysisRuns []AnalysisRunInfo
}

func NewExperimentInfo

func NewExperimentInfo(
	exp *v1alpha1.Experiment,
	allReplicaSets []*appsv1.ReplicaSet,
	allAnalysisRuns []*v1alpha1.AnalysisRun,
	allPods []*corev1.Pod,
) *ExperimentInfo

func (*ExperimentInfo) Images

func (r *ExperimentInfo) Images() []ImageInfo

Images returns a list of images that are currently running along with tags on which stack they belong to

type ImageInfo

type ImageInfo struct {
	Image string
	Tags  []string
}

type JobInfo

type JobInfo struct {
	Metadata
	Status string
	Icon   string
}

type Metadata

type Metadata struct {
	Name              string
	Namespace         string
	UID               types.UID
	CreationTimestamp metav1.Time
}

func (Metadata) Age

func (m Metadata) Age() string

type PodInfo

type PodInfo struct {
	Metadata
	Status   string
	Icon     string
	Ready    string
	Restarts int
}

type ReplicaSetInfo

type ReplicaSetInfo struct {
	Metadata
	Status    string
	Icon      string
	Revision  int
	Stable    bool
	Canary    bool
	Active    bool
	Preview   bool
	Replicas  int32
	Available int32
	Template  string
	Images    []string
	Pods      []PodInfo
}

type RolloutInfo

type RolloutInfo struct {
	Metadata

	Status       string
	Icon         string
	Strategy     string
	Step         string
	SetWeight    string
	ActualWeight string

	Ready     int32
	Current   int32
	Desired   int32
	Updated   int32
	Available int32

	ReplicaSets  []ReplicaSetInfo
	Experiments  []ExperimentInfo
	AnalysisRuns []AnalysisRunInfo
}

func NewRolloutInfo

func NewRolloutInfo(
	ro *v1alpha1.Rollout,
	allReplicaSets []*appsv1.ReplicaSet,
	allPods []*corev1.Pod,
	allExperiments []*v1alpha1.Experiment,
	allARs []*v1alpha1.AnalysisRun,
) *RolloutInfo

func (*RolloutInfo) AnalysisRunsByRevision

func (r *RolloutInfo) AnalysisRunsByRevision(rev int) []AnalysisRunInfo

func (*RolloutInfo) ExperimentsByRevision

func (r *RolloutInfo) ExperimentsByRevision(rev int) []ExperimentInfo

func (*RolloutInfo) Images

func (r *RolloutInfo) Images() []ImageInfo

Images returns a list of images that are currently running along with informational tags about 1. which stack they belong to (canary, stable, active, preview) 2. which experiment template they are part of

func (*RolloutInfo) ReplicaSetsByRevision

func (r *RolloutInfo) ReplicaSetsByRevision(rev int) []ReplicaSetInfo

func (*RolloutInfo) Revisions

func (r *RolloutInfo) Revisions() []int

Jump to

Keyboard shortcuts

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