# Functions

GenerateBashJob will create a ConfigMap and a Job that can be deployed to run a bash script given the container image you want the job to run and the shell commands you want the job to execute as arguments.
NewClientConfigForRestConfig provides the *clientcmdapi.Config for a cluster given a valid *rest.Config for the target cluster.
NewContainer creates a minimal and opinionated corev1.Container object for testing.
NewDeploymentForContainer creates a minimal and opinionated *appsv1.Deployment object for testing based on a provided corev1.Container.
NewIngressForContainerWithDeploymentAndService generates a Deployment, Service, and Ingress given a container.
NewIngressForService provides a basic and opinionated *netv1.Ingress object for the provided *corev1.Service to expose it via an ingress controller for testing purposes.
NewIngressForServiceWithClusterVersion provides an Ingress record for the provided service, but uses a provided Kubernetes cluster version to determine which Ingress version to provide (provides latest available for release).
NewKubeConfigForRestConfig provides the bytes for a kubeconfig file for use by kubectl or helm given a valid *rest.Config for the target cluster.
NewLegacyIngressForService provides a basic and opinionated *netv1beta1.Ingress object for the provided *corev1.Service to expose it via an ingress controller for testing purposes.
NewServiceForDeployment provides a minimal and opinionated service to expose the provided *appsv1.Deployment the ports and targetports from the service will match the container ports.
NewServiceForDeployment provides a minimal and opinionated service to expose the provided *appsv1.Deployment but accepts an optional map of container ports to service ports to allow custom port declarations rather than mapping ports according to the container ports.

# Variables

DefaultRequiredCompletionsForJobs indicates the number of Pod completions that will be required by default for any generated Job resources.