# Functions
Apply returns a function which applies a series of Modification functions to a *corev1.PodTemplateSpec.
DefaultPodSecurityContext returns the default pod security context with: - uid 2000 - fsGroup 2000 - runAsNonRoot set to true.
FindContainerByName will find either a container or init container by name in a pod template spec.
No description provided by the author
NOOP is a valid Modification which applies no changes.
No description provided by the author
No description provided by the author
WithAffinity updates the name, antiAffinityLabelKey and weight of the PodTemplateSpec's Affinity.
WithAnnotations sets the PodTemplateSpec's annotations.
WithContainer applies the modifications to the container with the provided name.
WithContainerByIndex applies the modifications to the container with the provided index if the index is out of range, a new container is added to accept these changes.
No description provided by the author
WithImagePullSecrets adds an ImagePullSecrets local reference with the given name.
WithInitContainer applies the modifications to the init container with the provided name.
WithInitContainerByIndex applies the modifications to the container with the provided index if the index is out of range, a new container is added to accept these changes.
WithNodeAffinity sets the PodTemplateSpec's node affinity.
WithPodAffinity sets the PodTemplateSpec's pod affinity.
WithPodLabels sets the PodTemplateSpec's Labels.
WithSecurityContext sets the PodTemplateSpec's SecurityContext.
WithServiceAccount sets the PodTemplateSpec's ServiceAccount name.
WithTerminationGracePeriodSeconds sets the PodTemplateSpec's termination grace period seconds.
WithTolerations sets the PodTemplateSpec's tolerations.
WithTopologyKey sets the PodTemplateSpec's topology at a given index.
WithVolume ensures given volume is present in the PodTemplateSpec.
WithVolumeMounts will add volume mounts to a container or init container by name.
WithVolumes ensures given volume is present in the PodTemplateSpec.
# Constants
No description provided by the author
# Type aliases
No description provided by the author