checkup

package
v0.0.0-...-1111fac Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClusterRoleKind = "ClusterRole"
	RoleKind        = "Role"
)
View Source
const JobNameLabel = "job-name"

Variables

This section is empty.

Functions

func NewCheckupWorkspace

func NewCheckupWorkspace(checkupSpec *Spec, clusterRoles []rbacv1.ClusterRole) *workspace

func WaitForJobToComplete

func WaitForJobToComplete(client *kubernetes.Clientset, jobName, jobNamespace string, timeout time.Duration) (*batchv1.Job, error)

Types

type Spec

type Spec struct {
	// contains filtered or unexported fields
}

func NewSpecFromConfigMap

func NewSpecFromConfigMap(configMap *corev1.ConfigMap) (*Spec, error)

func (*Spec) ClusterRoles

func (spec *Spec) ClusterRoles() []string

func (*Spec) Image

func (spec *Spec) Image() string

func (*Spec) Params

func (spec *Spec) Params() map[string]string

func (*Spec) Roles

func (spec *Spec) Roles() []string

func (*Spec) Timeout

func (spec *Spec) Timeout() time.Duration

type Status

type Status struct {
	// contains filtered or unexported fields
}

func (*Status) FailureReason

func (s *Status) FailureReason() string

func (*Status) Results

func (s *Status) Results() map[string]string

func (*Status) Succeeded

func (s *Status) Succeeded() string

Jump to

Keyboard shortcuts

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