diff options
author | Urvashi Mohnani <umohnani@redhat.com> | 2022-07-19 11:58:27 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2022-07-26 13:39:20 -0400 |
commit | c3c07ed09eb9e5998f2c67f1054850a5b8266aae (patch) | |
tree | 8eb27fc68de4f474d4c37e8e13b0c7e893a3f4cc /libpod/define | |
parent | 6057db75d81101fcfe2e63debedd8d0029461de4 (diff) | |
download | podman-c3c07ed09eb9e5998f2c67f1054850a5b8266aae.tar.gz podman-c3c07ed09eb9e5998f2c67f1054850a5b8266aae.tar.bz2 podman-c3c07ed09eb9e5998f2c67f1054850a5b8266aae.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.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 ) |