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 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
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
GetCandidate substantializes candidate in the targets returns non-nil error if there is problem in getting the runtime object from cluster
Click to show internal directories.
Click to hide internal directories.