targets

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RoleService   = Role("service")
	RoleBaseline  = Role("baseline")
	RoleCandidate = Role("candidate")
)

Variables

This section is empty.

Functions

func Cleanup added in v0.2.0

func Cleanup(context context.Context, instance *iter8v1alpha2.Experiment, client client.Client)

Cleanup deletes cluster runtime objects of targets at the end of experiment

Types

type Role

type Role string

Role of target

type Targets

type Targets struct {
	Service    *corev1.Service
	Baseline   runtime.Object
	Candidates []runtime.Object
	// contains filtered or unexported fields
}

Targets contains substantiated runtime objects of internal service, baseline and candidates that are specified inside an experiment cr; and also supplementray objects to help fulfill the getter functions

func Init

func Init(instance *iter8v1alpha2.Experiment, client client.Client) *Targets

Init initialize a Targets object with k8s client and namespace of the target service

func (*Targets) GetBaseline added in v0.2.0

func (t *Targets) GetBaseline(context context.Context) error

GetBaseline substantializes baseline in the targets returns non-nil error if there is problem in getting the runtime object from cluster

func (*Targets) GetCandidates

func (t *Targets) GetCandidates(context context.Context) (err error)

GetCandidates substantializes all candidates in the targets returns non-nil error if there is problem in getting the runtime objects from cluster

func (*Targets) GetService added in v0.2.0

func (t *Targets) GetService(context context.Context) error

GetService substantializes internal service in targets returns non-nil error if there is problem in getting the runtime object from cluster

Jump to

Keyboard shortcuts

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