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 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
GetBaseline substantializes baseline in the targets returns non-nil error if there is problem in getting the runtime object from cluster
func (*Targets) GetCandidates ¶
GetCandidates substantializes all candidates in the targets returns non-nil error if there is problem in getting the runtime objects from cluster
Click to show internal directories.
Click to hide internal directories.