From 3228e716af8d3e749ed29c7b49ba1e3a282a2f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=A9o=20M=C3=A9vollon?= Date: Tue, 28 May 2024 17:50:45 +0200 Subject: [PATCH] fix: zerodowntime volumes --- plugins/contrib/patches/70-zero-downtime-readiness.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/contrib/patches/70-zero-downtime-readiness.js b/plugins/contrib/patches/70-zero-downtime-readiness.js index 909ea65ef..9a6ef21bc 100644 --- a/plugins/contrib/patches/70-zero-downtime-readiness.js +++ b/plugins/contrib/patches/70-zero-downtime-readiness.js @@ -69,6 +69,9 @@ module.exports = function updateDeploymentManifests(manifests, options = {}) { }) // Ensure the volume does not conflict and is added to the pod spec + if (!manifest.spec.template.spec.volumes) { + manifest.spec.template.spec.volumes = [] + } if ( !manifest.spec.template.spec.volumes.some( (v) => v.name === "readiness-check-volume"