targets

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role string
const (
	RoleService   Role = "service"
	RoleBaseline  Role = "baseline"
	RoleCandidate Role = "candidate"
)

type Targets

type Targets struct {
	Service    *corev1.Service
	Baseline   *appsv1.Deployment
	Candidates []*appsv1.Deployment
	Port       *int32
	Hosts      []string
	Gateways   []string
	// contains filtered or unexported fields
}

Targets contains details for target service of an experiment

func Init

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

Init returns an initialized targets content for an expeirment

func (*Targets) Cleanup

func (t *Targets) Cleanup(context context.Context, instance *iter8v1alpha2.Experiment)

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

func (*Targets) GetBaseline added in v0.2.0

func (t *Targets) GetBaseline(context context.Context, instance *iter8v1alpha2.Experiment) 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, instance *iter8v1alpha2.Experiment) (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, instance *iter8v1alpha2.Experiment) error

GetService substantializes service in the 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