Documentation ¶
Index ¶
- Constants
- type Keeper
- func (k *Keeper) CleanupJob(podType string, podID uint64) error
- func (k *Keeper) CleanupPOD(podType string, mode types.PodRequestMode, podID uint64) error
- func (k *Keeper) CreateJob(pod *types.POD, jobConfig *config.JobConfig) (created *types.POD, err error)
- func (k *Keeper) CreatePOD(pod *types.POD) (created *types.POD, err error)
- func (k *Keeper) CreatePV() error
- func (k *Keeper) DeleteDeployment(podType string, podID uint64) (*appsv1.Deployment, error)
- func (k *Keeper) DeleteJob(podType string, podID uint64) error
- func (k *Keeper) DeleteService(PodType string, PodID uint64) (*corev1.Service, error)
- func (k *Keeper) GetDeployment(PodType string, PodID uint64) (*appsv1.Deployment, error)
- func (k *Keeper) GetJob(podType string, podID uint64) (*batchv1.Job, error)
- func (k *Keeper) GetJobInfo(podType string, podID uint64) (*batchv1.Job, error)
- func (k *Keeper) GetPodInfo(podType string, podID uint64) (*corev1.Pod, error)
- func (k *Keeper) GetService(PodType string, PodID uint64) (*corev1.Service, error)
- func (k *Keeper) IngressGC() error
- func (k *Keeper) InitKeeper() error
- func (k *Keeper) InitPOD(pod *types.POD) *types.POD
- func (k *Keeper) StartWatchers(fail chan int)
- func (k *Keeper) SyncUserJob(podType string, userpid uint64) (*types.POD, error)
- func (k *Keeper) SyncUserPod(podType string, userpid uint64) (*types.POD, error)
- type LoadBalancer
Constants ¶
View Source
const ( // DefaultNamespace : DefaultNamespace = "hyperml" // DefaultIngressName : Default name for Ingress Controller DefaultIngressName = "hyperml-lb" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper : POD launcher
func (*Keeper) CleanupJob ¶
CleanupJob: Clean up job from k8s
func (*Keeper) CleanupPOD ¶
CleanupPOD : TODO: remove service from ingress
func (*Keeper) CreateJob ¶
func (k *Keeper) CreateJob(pod *types.POD, jobConfig *config.JobConfig) (created *types.POD, err error)
CreateJob : Launches job pods
func (*Keeper) DeleteDeployment ¶
DeleteDeployment : Deletes deployment by USER POD ID
func (*Keeper) DeleteService ¶
DeleteService :
func (*Keeper) GetDeployment ¶
GetDeployment : Get K8S Deployment for given POD type and ID
func (*Keeper) GetJobInfo ¶
GetJobInfo : Returns a Job POD (k8s) tied to a given User Pod
func (*Keeper) GetPodInfo ¶
GetJobInfo : Returns a Job POD (k8s) tied to a given User Pod
func (*Keeper) GetService ¶
GetService : Get Service Rec
func (*Keeper) StartWatchers ¶
StartWatchers : watches a given namespace and deploy Type NOTEBOOK Todo handle failures
func (*Keeper) SyncUserJob ¶
SyncUserJob : Updates the status from Kubernetes POD to the user pod
type LoadBalancer ¶
type LoadBalancer struct {
// contains filtered or unexported fields
}
LoadBalancer :
Click to show internal directories.
Click to hide internal directories.