deployment

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const KubernetesAppNameLabel = "app.kubernetes.io/name"

KubernetesAppNameLabel string constant for Kubernetes App Name label

View Source
const KubernetesPartOfLabel = "app.kubernetes.io/part-of"

KubernetesPartOfLabel string constant for Kubernetes App PartOf label

Variables

This section is empty.

Functions

func Command

func Command(s []string) podSpecFunc

Command configures the command for the first container in the PodSpec.

func ContainerPort

func ContainerPort(p int32) podSpecFunc

ContainerPort configures a port for the first container as a ContainerPort with the specified port number.

func Create

func Create(partOf, ns, name, image string, opts ...podSpecFunc) *appsv1.Deployment

Create creates and returns a Deployment with the specified configuration.

func Env

func Env(env []corev1.EnvVar) podSpecFunc

Env adds an environment to the first container in the PodSpec.

func LabelSelector

func LabelSelector(name, partOf string) *metav1.LabelSelector

LabelSelector used to create the labelSelector for the commit status tracker

func ServiceAccount

func ServiceAccount(sa string) podSpecFunc

ServiceAccount is an option that configures the deployment's pods to execute with the provided service account name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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