From 304665cd17201056cceecd055582c25100886ff6 Mon Sep 17 00:00:00 2001 From: ericgraf Date: Mon, 29 Jan 2024 12:00:25 -0800 Subject: [PATCH] feat: add ability to define deployment strategy --- charts/zot/templates/deployment.yaml | 4 ++++ charts/zot/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/charts/zot/templates/deployment.yaml b/charts/zot/templates/deployment.yaml index e8c0574..2e639f9 100644 --- a/charts/zot/templates/deployment.yaml +++ b/charts/zot/templates/deployment.yaml @@ -6,6 +6,10 @@ metadata: {{- include "zot.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + {{- with .Values.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "zot.selectorLabels" . | nindent 6 }} diff --git a/charts/zot/values.yaml b/charts/zot/values.yaml index ad32913..b3bbc65 100644 --- a/charts/zot/values.yaml +++ b/charts/zot/values.yaml @@ -171,3 +171,9 @@ extraVolumeMounts: [] extraVolumes: [] # - name: data # emptyDir: {} + +# Deployment strategy type +strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 25% \ No newline at end of file