summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-27 09:42:31 -0400
committerGitHub <noreply@github.com>2022-04-27 09:42:31 -0400
commitbbe419ef9ffda699aa87ab0fcb2bdf50c0ff5058 (patch)
tree85bf123d2a7e1c3439d7a2da9e4656eabfbf1fb7 /libpod/define
parentc44efb011003942adedb6ac74457be0123d23a02 (diff)
parent7259a6315c7f7d97665d928de6357fc3cbcae136 (diff)
downloadpodman-bbe419ef9ffda699aa87ab0fcb2bdf50c0ff5058.tar.gz
podman-bbe419ef9ffda699aa87ab0fcb2bdf50c0ff5058.tar.bz2
podman-bbe419ef9ffda699aa87ab0fcb2bdf50c0ff5058.zip
Merge pull request #14023 from rhatdan/kube
Truncate annotations when generating kubernetes yaml files
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/annotations.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libpod/define/annotations.go b/libpod/define/annotations.go
index a83fbff0b..8f5279981 100644
--- a/libpod/define/annotations.go
+++ b/libpod/define/annotations.go
@@ -135,6 +135,8 @@ 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"
+ // MaxKubeAnnotation is the max length of annotations allowed by Kubernetes.
+ MaxKubeAnnotation = 63
)
// IsReservedAnnotation returns true if the specified value corresponds to an