util

package
v0.0.0-...-9fb1a10 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientLabels

func ClientLabels(instance *morphlingv1alpha1.Trial) map[string]string

ClientLabels returns the expected trial labels.

func GetDBStorageEndpoint

func GetDBStorageEndpoint() string

func GetServiceDeploymentName

func GetServiceDeploymentName(t *morphlingv1alpha1.Trial) string

func GetServiceEndpoint

func GetServiceEndpoint(t *morphlingv1alpha1.Trial) string

func GetServiceName

func GetServiceName(t *morphlingv1alpha1.Trial) string

func GetStressTestJobName

func GetStressTestJobName(t *morphlingv1alpha1.Trial) string

func HasRunningTrials

func HasRunningTrials(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsCompletedExperiment

func IsCompletedExperiment(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsCompletedTrial

func IsCompletedTrial(trial *morphlingv1alpha1.Trial) bool

func IsCreatedExperiment

func IsCreatedExperiment(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsCreatedTrial

func IsCreatedTrial(trial *morphlingv1alpha1.Trial) bool

func IsFailedExperiment

func IsFailedExperiment(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsFailedTrial

func IsFailedTrial(trial *morphlingv1alpha1.Trial) bool

func IsJobFailed

func IsJobFailed(jobCondition []batchv1.JobCondition) bool

func IsJobSucceeded

func IsJobSucceeded(jobCondition []batchv1.JobCondition) bool

func IsKilledTrial

func IsKilledTrial(trial *morphlingv1alpha1.Trial) bool

func IsPendingTrial

func IsPendingTrial(trial *morphlingv1alpha1.Trial) bool

func IsRunningExperiment

func IsRunningExperiment(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsRunningTrial

func IsRunningTrial(trial *morphlingv1alpha1.Trial) bool

func IsServiceDeplomentFail

func IsServiceDeplomentFail(podConditions []appsv1.DeploymentCondition) bool

func IsServiceDeplomentReady

func IsServiceDeplomentReady(podConditions []appsv1.DeploymentCondition) bool

func IsSucceededExperiment

func IsSucceededExperiment(exp *morphlingv1alpha1.ProfilingExperiment) bool

func IsSucceededTrial

func IsSucceededTrial(trial *morphlingv1alpha1.Trial) bool

func MarkExperimentStatusCreated

func MarkExperimentStatusCreated(exp *morphlingv1alpha1.ProfilingExperiment, message string)

func MarkExperimentStatusFailed

func MarkExperimentStatusFailed(exp *morphlingv1alpha1.ProfilingExperiment, message string)

func MarkExperimentStatusRunning

func MarkExperimentStatusRunning(exp *morphlingv1alpha1.ProfilingExperiment, message string)

func MarkExperimentStatusSucceeded

func MarkExperimentStatusSucceeded(exp *morphlingv1alpha1.ProfilingExperiment, message string)

func MarkTrialStatusCreatedTrial

func MarkTrialStatusCreatedTrial(trial *morphlingv1alpha1.Trial, message string)

func MarkTrialStatusFailed

func MarkTrialStatusFailed(trial *morphlingv1alpha1.Trial, message string)

func MarkTrialStatusPendingTrial

func MarkTrialStatusPendingTrial(trial *morphlingv1alpha1.Trial, message string)

func MarkTrialStatusRunning

func MarkTrialStatusRunning(trial *morphlingv1alpha1.Trial, message string)

func MarkTrialStatusSucceeded

func MarkTrialStatusSucceeded(trial *morphlingv1alpha1.Trial, status v1.ConditionStatus, message string)

func ServiceDeploymentLabels

func ServiceDeploymentLabels(instance *morphlingv1alpha1.Trial) map[string]string

func ServicePodLabels

func ServicePodLabels(instance *morphlingv1alpha1.Trial) map[string]string

ServicePodLabels returns the expected trial labels.

func SetConditionTrial

func SetConditionTrial(trial *morphlingv1alpha1.Trial, conditionType morphlingv1alpha1.TrialConditionType, status v1.ConditionStatus, message string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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