diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-07-19 11:58:27 -0400 |
---|---|---|
committer | Urvashi Mohnani <umohnani@redhat.com> | 2022-07-20 10:02:32 -0400 |
commit | da33f100551ebd9b5e8790d677a1a8be2ea4fae4 (patch) | |
tree | daebdd87c3056614f7f74545db2fe392cf95371b /libpod/define/annotations.go | |
parent | 21cf30f2f895a3c453760f800077b8f7dbfce23c (diff) | |
download | podman-da33f100551ebd9b5e8790d677a1a8be2ea4fae4.tar.gz podman-da33f100551ebd9b5e8790d677a1a8be2ea4fae4.tar.bz2 podman-da33f100551ebd9b5e8790d677a1a8be2ea4fae4.zip |
Update init ctr default for play kube
Update the init container type default to once instead
of always to match k8s behavior.
Add a new annotation that can be used to change the init
ctr type in the kube yaml.
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Diffstat (limited to 'libpod/define/annotations.go')
-rw-r--r-- | libpod/define/annotations.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpod/define/annotations.go b/libpod/define/annotations.go index 8f5279981..580286d6a 100644 --- a/libpod/define/annotations.go +++ b/libpod/define/annotations.go @@ -135,6 +135,11 @@ const ( // creating a checkpoint image to specify the name of host distribution on // which the checkpoint was created. CheckpointAnnotationDistributionName = "io.podman.annotations.checkpoint.distribution.name" + + // InitContainerType is used by play kube when playing a kube yaml to specify the type + // of the init container. + InitContainerType = "io.podman.annotations.init.container.type" + // MaxKubeAnnotation is the max length of annotations allowed by Kubernetes. MaxKubeAnnotation = 63 ) |