Documentation
¶
Index ¶
- Constants
- func ConvertExperiment(in *redskyv1alpha1.Experiment, out *redskyapi.Experiment) error
- func ConvertExperimentList(in *redskyv1alpha1.ExperimentList, out *redskyapi.ExperimentList) error
- func ConvertTrialAssignements(in *redskyv1alpha1.Trial, out *redskyapi.TrialAssignments) error
- func ConvertTrialList(in *redskyv1alpha1.TrialList, out *redskyapi.TrialList) error
- func ConvertTrialValues(in *redskyv1alpha1.Trial, out *redskyapi.TrialValues) error
- func FindAvailableNamespace(r client.Reader, experiment *redskyv1alpha1.Experiment, ...) (string, error)
- func NeedsCleanup(t *redskyv1alpha1.Trial) bool
- func PopulateTrialFromTemplate(experiment *redskyv1alpha1.Experiment, trial *redskyv1alpha1.Trial, ...)
Constants ¶
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.