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 DataVolume ¶
type DataVolume struct {
// contains filtered or unexported fields
}
type IngressService ¶
type IngressService struct {
// contains filtered or unexported fields
}
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)
Click to show internal directories.
Click to hide internal directories.