package
0.0.0-20200415233609-fcd509578030
Repository: https://github.com/uthng/container-injector.git
Documentation: pkg.go.dev

# Functions

EscapeJSONPointer escapes a JSON string to be compliant with the JavaScript Object Notation (JSON) Pointer syntax RFC: https://tools.ietf.org/html/rfc6901.
NewContainer creates a new container by parsing all Kubernetes annotations.

# Constants

AnnotationContainerArgs is the list of arguments for the command to be executed when the container starts.
AnnotationContainerCommand specifies the command to be executed when the container starts.
AnnotationContainerConfigMap is the name of the configuration map where Container configuration file and templates can be found.
AnnotationContainerEnv specifies the environment variables and their values for the container.
AnnotationContainerImage is the name of the docker image to use.
AnnotationContainerInitContainer makes the initialization container the first container to run when a pod starts.
AnnotationContainerInitFirst makes the initialization container the first container to run when a pod starts.
AnnotationContainerInject controls whether injection is explicitly enabled or disabled for a pod.
AnnotationContainerLimitsCPU sets the CPU limit on the Container containers.
AnnotationContainerLimitsMem sets the memory limit on the Container containers.
AnnotationContainerName is the name of the injected container.
AnnotationContainerPullPolicy specifies the pull policy for container image.
AnnotationContainerRequestsCPU sets the requested CPU amount on the Container containers.
AnnotationContainerRequestsMem sets the requested memory amount on the Container containers.
AnnotationContainerRunAsGroup sets the Group ID to run the Container Container containers as.
AnnotationContainerRunAsUser sets the User ID to run the Container Container containers as.
AnnotationContainerStatus is the annotation that is added to a pod after an injection is done.
AnnotationContainerTLSSecret is the name of the Kubernetes secret containing client TLS certificates and keys.
AnnotationContainerVolumeMount specifies the volume mount paths in the container.
AnnotationContainerVolumeSource specifies the source of volumes to mount in the pod.

# Structs

Container defines the container to be injected in the pod.