experiment

package
v0.0.0-...-8a20bae Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelKeyExperimentName = "hackathon.kaiyuanshe.cn/experiment"
	LabelKeyClusterName    = "hackathon.kaiyuanshe.cn/cluster"
)

Variables

View Source
var (
	DataVolumeStorageClass = "local-fs"
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Client client.Client
	Logger logr.Logger
}

func (*Controller) Reconcile

func (c *Controller) Reconcile(ctx context.Context, status *Status) *results.Results

type DataVolume

type DataVolume struct {
	// contains filtered or unexported fields
}

func (*DataVolume) Reconcile

func (v *DataVolume) Reconcile(ctx context.Context) *results.Results

type IngressService

type IngressService struct {
	// contains filtered or unexported fields
}

func (*IngressService) Reconcile

func (r *IngressService) Reconcile(ctx context.Context) *results.Results

type ResourceState

type ResourceState struct {
	Cluster         *hackathonv1.CustomCluster
	Template        *hackathonv1.Template
	EnvPod          []corev1.Pod
	IngressSvc      *corev1.Service
	DataVolume      *corev1.PersistentVolume
	DataVolumeClaim *corev1.PersistentVolumeClaim
}

func NewExprResourceStatus

func NewExprResourceStatus(ctx context.Context, k8sClient client.Client, expr *hackathonv1.Experiment) (*ResourceState, error)

type Status

type Status struct {
	*event.Recorder
	Experiment *hackathonv1.Experiment
	Status     *hackathonv1.ExperimentStatus
}

func NewStatus

func NewStatus(expr *hackathonv1.Experiment) *Status

func (*Status) Apply

func (s *Status) Apply() ([]event.Event, *hackathonv1.Experiment)

func (*Status) UpdateExperimentStatus

func (s *Status) UpdateExperimentStatus(state *ResourceState)

Jump to

Keyboard shortcuts

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