Skip to content

Commit

Permalink
fix: zerodowntime volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed May 28, 2024
1 parent 7f46715 commit 3228e71
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/contrib/patches/70-zero-downtime-readiness.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3228e71

Please sign in to comment.