aboutsummaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorUrvashi Mohnani <umohnani@redhat.com>2022-07-19 11:58:27 -0400
committerUrvashi Mohnani <umohnani@redhat.com>2022-07-20 10:02:32 -0400
commitda33f100551ebd9b5e8790d677a1a8be2ea4fae4 (patch)
treedaebdd87c3056614f7f74545db2fe392cf95371b /libpod/define
parent21cf30f2f895a3c453760f800077b8f7dbfce23c (diff)
downloadpodman-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')
-rw-r--r--libpod/define/annotations.go5
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
)