trial

package
v1.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// This is overwritten during builds to point to the actual image
	Image                  = "setuptools:latest"
	ImagePullPolicy string = string(corev1.PullIfNotPresent)
)

Functions

func ApplyCondition added in v1.1.1

func ApplyCondition(status *redskyv1alpha1.TrialStatus, conditionType redskyv1alpha1.TrialConditionType, conditionStatus corev1.ConditionStatus, reason, message string, time *metav1.Time)

ApplyCondition updates a the status of an existing condition or adds it if it does not exist

func CheckCondition added in v1.1.1

func CheckCondition(status *redskyv1alpha1.TrialStatus, conditionType redskyv1alpha1.TrialConditionType, conditionStatus corev1.ConditionStatus) (bool, bool)

CheckCondition checks to see if a condition has a specific status and if it exists

func IsTrialActive added in v1.2.0

func IsTrialActive(trial *redskyv1alpha1.Trial) bool

IsTrialActive checks to see if the specified trial and any setup delete tasks are NOT finished

func IsTrialFinished

func IsTrialFinished(trial *redskyv1alpha1.Trial) bool

IsTrialFinished checks to see if the specified trial is finished

func ManageSetup added in v1.1.1

func ManageSetup(c client.Client, s *runtime.Scheme, ctx context.Context, probeTime *metav1.Time, trial *redskyv1alpha1.Trial) (*ctrl.Result, error)

func WaitForStableState added in v1.1.1

func WaitForStableState(r client.Reader, ctx context.Context, log logr.Logger, p *redskyv1alpha1.PatchOperation) error

WaitForStableState checks to see if the object referenced by the supplied patch operation has stabilized. If stabilization has not occurred, an error is returned: errors with a delay indicate that the resource is not ready, errors without a delay indicate the resource is never expected to become ready.

Types

type HelmGeneratorConfig added in v1.2.2

type HelmGeneratorConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	ReleaseName       string               `json:"releaseName"`
	Chart             string               `json:"chart"`
	Version           string               `json:"version"`
	Values            []HelmGeneratorValue `json:"values"`
}

func NewHelmGeneratorConfig added in v1.2.2

func NewHelmGeneratorConfig(task *redskyv1alpha1.SetupTask) *HelmGeneratorConfig

type HelmGeneratorValue added in v1.2.2

type HelmGeneratorValue struct {
	File        string      `json:"file,omitempty"`
	Name        string      `json:"name,omitempty"`
	Value       interface{} `json:"value,omitempty"`
	ForceString bool        `json:"forceString,omitempty"`
}

type StabilityError

type StabilityError struct {
	// The reason for the stability error
	Reason string
	// The object on which the stability problem was detected
	TargetRef corev1.ObjectReference
	// The minimum amount of time until the object is expected to stabilize, if left unspecified there is no expectation of stability
	RetryAfter time.Duration
}

StabilityError indicates that the cluster has not reached a sufficiently stable state

func (*StabilityError) Error

func (e *StabilityError) Error() string

Jump to

Keyboard shortcuts

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