diff --git a/plugins/contrib/patches/70-zero-downtime-readiness.js b/plugins/contrib/patches/70-zero-downtime-readiness.js index 909ea65ef..04f39843a 100644 --- a/plugins/contrib/patches/70-zero-downtime-readiness.js +++ b/plugins/contrib/patches/70-zero-downtime-readiness.js @@ -39,11 +39,10 @@ module.exports = function updateDeploymentManifests(manifests, options = {}) { }, preStop: { exec: { - // Adding a sleep of gracefulShutdownSeconds before removing the readiness file command: [ "sh", "-c", - `sleep ${gracefulShutdownSeconds}; rm -f /var/run/readiness-check/readiness-file`, + `rm -f /var/run/readiness-check/readiness-file; sleep ${gracefulShutdownSeconds}`, ], }, }, @@ -69,6 +68,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" diff --git a/plugins/fabrique/kontinuous.yaml b/plugins/fabrique/kontinuous.yaml index 97b56ce23..c1e94546b 100644 --- a/plugins/fabrique/kontinuous.yaml +++ b/plugins/fabrique/kontinuous.yaml @@ -22,8 +22,7 @@ dependencies: patches: zeroDowntimeReadiness: - # enabled: true - enabled: false + enabled: true certs: enabled: true options: