targets

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultKind = "Deployment"
)

Variables

This section is empty.

Functions

func Cleanup added in v0.2.0

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

Cleanup removes target instances that will not receive traffic after experiment ended if necessary

func ValidateSpec added in v0.2.0

func ValidateSpec(instance *iter8v1alpha1.Experiment) error

ValidateSpec validates whether targetService is valid or not

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  runtime.Object
	Candidate runtime.Object
	Port      *int32
	Hosts     []string
	Gateways  []string
	// contains filtered or unexported fields
}

func InitTargets

func InitTargets(instance *iter8v1alpha1.Experiment, client client.Client) *Targets

InitTargets initializes object instances with

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) GetCandidate added in v0.2.0

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

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

func (*Targets) GetService added in v0.2.0

func (t *Targets) GetService(context context.Context) 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