From bb9fc0422b065d22115387ae7360a68dd76ab6c3 Mon Sep 17 00:00:00 2001 From: Rowan Smith Date: Mon, 8 Sep 2025 12:32:50 +1000 Subject: [PATCH] Defined the spec.strategy.type field as Recreate --- CHANGELOG.md | 4 ++++ helm/templates/deployment.yaml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14bda83..a3cc3d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- Updated the Kubernetes Deployment `spec.strategy.type` field to be of type `Recreate` + in order to properly handle upgrades/restarts as the default deployment creates a PVC + of type `ReadWriteOnce` and could only be assigned to one replica. + ## [2.4.0](https://github.com/coder/code-marketplace/releases/tag/v2.4.0) - 2025-09-04 ### Added diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 27c4895..f5ea7da 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -11,6 +11,8 @@ spec: selector: matchLabels: {{- include "code-marketplace.selectorLabels" . | nindent 6 }} + strategy: + type: Recreate template: metadata: {{- with .Values.podAnnotations }}