Documentation ¶
Index ¶
Constants ¶
const KubernetesAppNameLabel = "app.kubernetes.io/name"
KubernetesAppNameLabel string constant for Kubernetes App Name label
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
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.