Documentation ¶
Index ¶
- Constants
- func NewClusterIPService(role *model.Role, headless bool) (*apiv1.Service, error)
- func NewDeployment(role *model.Role, settings *ExportSettings) (*extra.Deployment, *apiv1.Service, error)
- func NewJob(role *model.Role, settings *ExportSettings) (*extra.Job, error)
- func NewPodTemplate(role *model.Role, settings *ExportSettings) (v1.PodTemplateSpec, error)
- func NewStatefulSet(role *model.Role, settings *ExportSettings) (*v1beta1.StatefulSet, *v1.List, error)
- func WriteYamlConfig(kubeObject runtime.Object, writer io.Writer) error
- type ExportSettings
Constants ¶
View Source
const ( // RoleNameLabel is a thing RoleNameLabel = "skiff-role-name" // VolumeStorageClassAnnotation is the annotation label for storage/v1beta1/StorageClass VolumeStorageClassAnnotation = "volume.beta.kubernetes.io/storage-class" )
Variables ¶
This section is empty.
Functions ¶
func NewClusterIPService ¶
NewClusterIPService creates a new k8s ClusterIP service
func NewDeployment ¶
func NewDeployment(role *model.Role, settings *ExportSettings) (*extra.Deployment, *apiv1.Service, error)
NewDeployment creates a Deployment for the given role, and its attached service
func NewPodTemplate ¶
func NewPodTemplate(role *model.Role, settings *ExportSettings) (v1.PodTemplateSpec, error)
NewPodTemplate creates a new pod template spec for a given role, as well as any objects it depends on
func NewStatefulSet ¶
func NewStatefulSet(role *model.Role, settings *ExportSettings) (*v1beta1.StatefulSet, *v1.List, error)
NewStatefulSet returns a k8s stateful set for the given role
Types ¶
Click to show internal directories.
Click to hide internal directories.