Documentation
¶
Index ¶
- Constants
- func Command(s []string) podSpecFunc
- func ContainerPort(p int32) podSpecFunc
- func Create(partOf, ns, name, image string, opts ...podSpecFunc) *appsv1.Deployment
- func Env(env []corev1.EnvVar) podSpecFunc
- func LabelSelector(name, partOf string) *metav1.LabelSelector
- func ServiceAccount(sa string) podSpecFunc
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 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.
Click to show internal directories.
Click to hide internal directories.