experiment

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ExperimentFinalizer is used by the experiment controller to ensure synchronization with the remote server
	ExperimentFinalizer = "experimentFinalizer.redskyops.dev"
)

Variables

This section is empty.

Functions

func ConvertExperiment added in v1.1.1

func ConvertExperiment(in *redskyv1alpha1.Experiment, out *redskyapi.Experiment) error

ConvertExperiment copies a Kubernetes experiment into a Red Sky API experiment

func ConvertExperimentList added in v1.1.1

func ConvertExperimentList(in *redskyv1alpha1.ExperimentList, out *redskyapi.ExperimentList) error

ConvertExperimentList copies a Kubernetes experiment list into a Red Sky API experiment list. Note that the output slice is not cleared, allowing this method to be used with paged results.

func ConvertTrialAssignements added in v1.1.1

func ConvertTrialAssignements(in *redskyv1alpha1.Trial, out *redskyapi.TrialAssignments) error

ConvertTrialAssignments copies the assignments of a Kubernetes trial into a Red Sky API trial assignments

func ConvertTrialList added in v1.1.1

func ConvertTrialList(in *redskyv1alpha1.TrialList, out *redskyapi.TrialList) error

ConvertTrialList copies a Kubernetes trial into a Red Sky API trial list. Note that the output slice is not cleared, allowing this method to be used with paged results.

func ConvertTrialValues added in v1.1.1

func ConvertTrialValues(in *redskyv1alpha1.Trial, out *redskyapi.TrialValues) error

ConvertTiralValues copies the values of a Kubernetes trial into a Red Sky API trial values

func FindAvailableNamespace added in v1.0.1

func FindAvailableNamespace(r client.Reader, experiment *redskyv1alpha1.Experiment, trials []redskyv1alpha1.Trial) (string, error)

FindAvailableNamespace searches for a namespace to run a new trial in, returning an empty string if no such namespace can be found

func NeedsCleanup added in v1.2.0

func NeedsCleanup(t *redskyv1alpha1.Trial) bool

NeedsCleanup checks whether a trial's TTL has expired

func PopulateTrialFromTemplate

func PopulateTrialFromTemplate(experiment *redskyv1alpha1.Experiment, trial *redskyv1alpha1.Trial, namespace string)

PopulateTrialFromTemplate creates a new trial for an experiment

Types

This section is empty.

Jump to

Keyboard shortcuts

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