k8s

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPortConfigToService

func AddPortConfigToService(
	service *api.Service,
	name string,
	protocol api.Protocol,
	port int,
	targetPort int)

AddPortConfigToService add port to service

func BuildDeployment

func BuildDeployment(
	name string,
	namespace string,
	maxUnavailable int,
	maxSurge int,
	replicas int,
	selector string,
	podSpec api.PodSpec) *extensions.Deployment

BuildDeployment builds and returns a deployment pointer.

func BuildLoadBalancerService

func BuildLoadBalancerService(name, namespace, selector string) *api.Service

BuildLoadBalancerService creates a service of type load balancer

func BuildSlugRunnerDeployment

func BuildSlugRunnerDeployment(
	name string,
	namespace string,
	maxUnavailable int,
	maxSurge int,
	replicas int,
	selector string,
	slugURL string,
	env map[string]string) *extensions.Deployment

BuildSlugRunnerDeployment builds a deployment using a slugrunner image with the slug built by the slugbuilder some steps earlier.

func BuildSlugRunnerLBService

func BuildSlugRunnerLBService(name, namespace, selector string) *api.Service

BuildSlugRunnerLBService helps to create a slugrunner service pointing to port 5000

func BuildSlugbuilderPod

func BuildSlugbuilderPod(env map[string]string, name, namespace, tarKey, putKey, buildpackURL string, debug bool) *api.Pod

BuildSlugbuilderPod is used to create an builder pod

func SlugBuilderPodName

func SlugBuilderPodName(appName, shortSha string) string

SlugBuilderPodName is used to generate a temp name to the builder pod

func WaitForPod

func WaitForPod(c *client.Client, ns, podName string, interval, timeout time.Duration) error

WaitForPod waits for running stated, among others

func WaitForPodEnd

func WaitForPodEnd(c *client.Client, ns, podName string, interval, timeout time.Duration) error

WaitForPodEnd waits for a pod in state succeeded or failed

Types

This section is empty.

Jump to

Keyboard shortcuts

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