deployment

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 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 Create

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

Create creates and returns a Deployment with the specified configuration.

func LabelSelector

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

LabelSelector used to create the labelSelector for the commit status tracker

Types

type PodSpecFunc added in v0.0.5

type PodSpecFunc func(t *corev1.PodSpec)

PodSpecFunc is an option-func type for changing the pods created by the Create function.

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 Env

func Env(env []corev1.EnvVar) PodSpecFunc

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

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.

Jump to

Keyboard shortcuts

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