kubernetes

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2016 License: Apache-2.0 Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigEnvs added in v0.1.0

func ConfigEnvs(name string, service kobject.ServiceConfig) []api.EnvVar

Configure the environment variables.

func ConfigPorts added in v0.1.0

func ConfigPorts(name string, service kobject.ServiceConfig) []api.ContainerPort

Configure the container ports.

func ConfigServicePorts added in v0.1.0

func ConfigServicePorts(name string, service kobject.ServiceConfig) []api.ServicePort

Configure the container service ports.

func ConfigVolumes added in v0.1.0

func ConfigVolumes(service kobject.ServiceConfig) ([]api.VolumeMount, []api.Volume)

Configure the container volumes.

func CreateKubernetesObjects added in v0.1.0

func CreateKubernetesObjects(name string, service kobject.ServiceConfig, opt kobject.ConvertOptions) []runtime.Object

Generate a Kubernetes artifact for each input type service

func CreateObjects added in v0.1.0

func CreateObjects(client *client.Client, objects []runtime.Object)

Submit deployment and svc to k8s endpoint

func CreateService added in v0.1.0

func CreateService(name string, service kobject.ServiceConfig, objects []runtime.Object) *api.Service

create a k8s service

func DeleteObjects added in v0.1.0

func DeleteObjects(client *client.Client, name string)

func InitD added in v0.1.0

func InitD(name string, service kobject.ServiceConfig, replicas int) *extensions.Deployment

Init Deployment

func InitDS added in v0.1.0

func InitDS(name string, service kobject.ServiceConfig) *extensions.DaemonSet

Init DS object

func InitRC added in v0.1.0

func InitRC(name string, service kobject.ServiceConfig, replicas int) *api.ReplicationController

Init RC object

func InitSvc added in v0.1.0

func InitSvc(name string, service kobject.ServiceConfig) *api.Service

Init Svc object

func PortsExist added in v0.1.0

func PortsExist(name string, service kobject.ServiceConfig) bool

func PrintList

func PrintList(objects []runtime.Object, opt kobject.ConvertOptions) error

PrintList will take the data converted and decide on the commandline attributes given

func SortServicesFirst added in v0.1.0

func SortServicesFirst(objs *[]runtime.Object)

the objects that we get can be in any order this keeps services first according to best practice kubernetes services should be created first http://kubernetes.io/docs/user-guide/config-best-practices/

func UpdateController added in v0.1.0

func UpdateController(obj runtime.Object, updateTemplate func(*api.PodTemplateSpec), updateMeta func(meta *api.ObjectMeta))

Updates the given object with the given pod template update function and ObjectMeta update function

func UpdateKubernetesObjects added in v0.1.0

func UpdateKubernetesObjects(name string, service kobject.ServiceConfig, objects []runtime.Object)

load configurations to k8s objects

Types

type Kubernetes

type Kubernetes struct {
}

func (*Kubernetes) Transform

func (k *Kubernetes) Transform(komposeObject kobject.KomposeObject, opt kobject.ConvertOptions) []runtime.Object

Transform maps komposeObject to k8s objects returns object that are already sorted in the way that Services are first

Jump to

Keyboard shortcuts

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