kube

package
v0.0.0-...-5a1c513 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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

func NewClusterIPService(role *model.Role, headless bool) (*apiv1.Service, error)

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 NewJob

func NewJob(role *model.Role, settings *ExportSettings) (*extra.Job, error)

NewJob creates a new Job for the given role, as well as any objects it depends on

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

func WriteYamlConfig

func WriteYamlConfig(kubeObject runtime.Object, writer io.Writer) error

WriteYamlConfig writes the YAML serialized configuration of a k8s object to a specified writer

Types

type ExportSettings

type ExportSettings struct {
	Repository      string
	Defaults        map[string]string
	Registry        string
	Organization    string
	UseMemoryLimits bool
}

ExportSettings are configuration for creating Kubernetes configs

Jump to

Keyboard shortcuts

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