helper

package
v0.0.0-...-8225f2e Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeploymentForHelper

func CreateDeploymentForHelper(name string, podTemplateSpec v1core.PodTemplateSpec) *v1beta1.Deployment

CreateDeploymentForHelper ...

func CreatePVCFromBOM

func CreatePVCFromBOM(sharedVolumeClaim *v1core.PersistentVolumeClaim, k8sClient kubernetes.Interface) error

CreatePVCFromBOM ...

func CreatePodSpec

func CreatePodSpec(containers []v1core.Container, volumes []v1core.Volume, labels map[string]string) v1core.PodTemplateSpec

CreatePodSpec ...

Types

type ETCDVolume

type ETCDVolume struct {
	Name      string
	MountSpec VolumeMountSpec
}

ETCDVolume ...

type LocalVolume

type LocalVolume struct {
	Name      string
	MountSpec VolumeMountSpec
}

LocalVolume ...

type SharedNFSVolume

type SharedNFSVolume struct {
	Name, PVCClaimName string
	PVC                *v1core.PersistentVolumeClaim //nil for static volumes as this is already created
	MountSpec          VolumeMountSpec
}

SharedNFSVolume ...

type VolumeMountSpec

type VolumeMountSpec struct {
	MountPath, SubPath string
}

VolumeMountSpec ...

type Volumes

type Volumes struct {
	ETCDVolume                        *ETCDVolume
	SharedSplitLearnerHelperVolume    *SharedNFSVolume
	SharedNonSplitLearnerHelperVolume *LocalVolume
}

Volumes ...

func (Volumes) CreateDataVolume

func (volumes Volumes) CreateDataVolume(trainingID string) v1core.Volume

CreateDataVolume ...

func (Volumes) CreateDataVolumeMount

func (volumes Volumes) CreateDataVolumeMount() v1core.VolumeMount

CreateDataVolumeMount ...

func (Volumes) CreateETCDVolume

func (volumes Volumes) CreateETCDVolume() v1core.Volume

CreateETCDVolume ...

func (Volumes) CreateETCDVolumeMount

func (volumes Volumes) CreateETCDVolumeMount() v1core.VolumeMount

CreateETCDVolumeMount ...

func (Volumes) CreateSSLVolume

func (volumes Volumes) CreateSSLVolume() v1core.Volume

CreateETCDVolume ...

func (Volumes) CreateSSLVolumeMount

func (volumes Volumes) CreateSSLVolumeMount() v1core.VolumeMount

CreateETCDVolumeMount ...

func (Volumes) DynamicPVCReference

func (volumes Volumes) DynamicPVCReference() *v1core.PersistentVolumeClaim

DynamicPVCReference ...

Jump to

Keyboard shortcuts

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