helpers

package
v0.0.0-...-7f8ae64 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AnnotationKeyDefault   = "kubereplay.lwolf.org/mode"
	AnnotationKeyReplicas  = "kubereplay.lwolf.org/replicas"
	AnnotationKeyShadow    = "kubereplay.lwolf.org/shadow"
	AnnotationValueCapture = "blue"
	AnnotationValueSkip    = "green"
)

Variables

This section is empty.

Functions

func AppLabels

func AppLabels(name string) map[string]string

func BlueGreenReplicas

func BlueGreenReplicas(n int32, segmentSize int32) (blueReplicas int32, greenReplicas int32)

func CleanupDeployment

func CleanupDeployment(d *appsv1.Deployment) *appsv1.Deployment

func GenerateDeployment

func GenerateDeployment(name string, r *kubereplayv1alpha1.Refinery) *appsv1.Deployment

func GenerateService

func GenerateService(name string, namespace string, spec *kubereplayv1alpha1.RefinerySpec) *apiv1.Service

Types

This section is empty.

Jump to

Keyboard shortcuts

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