# Functions

CSRName returns a CertificateSigningRequest name for a given QuarksJob.
CsrPrivateKeySecretName returns a Secret name for a given CertificateSigningRequest private key.
DNSLabelSafe filters invalid characters and returns a string that is safe to use as a DNS label.
GetDockerSourceName returns the name of the docker image More info: * https://kubernetes.io/docs/concepts/containers/images * <hub-user>/<repo-name>[:<tag>] * ACCOUNT.dkr.ecr.REGION.amazonaws.com/imagename:tag prefix: [<host>[:<port>]/][<org>/] repo: <name> tag :[:<tag>].
GetStatefulSetName gets statefulset name from podName.
JobName returns a unique, short name for a given eJob k8s allows 63 chars, but the job's pod will have -\d{6} (=7 chars) appended.
OrdinalFromPodName returns ordinal from pod name.
Sanitize produces valid k8s names, i.e.
SanitizeSubdomain allows more than Sanitize, cannot be used for DNS or path segments.
SpecIndex return the job sepc index.
TruncateMD5 truncates the string to n chars and adds a hex encoded md5 sum.
VolumeName generate volume name based on secret name.

# Constants

ConfigMap is used in log messages.
GroupName is the k8s API group name.
Secret is used in log messages.