diff --git a/charts/opencost/Chart.yaml b/charts/opencost/Chart.yaml index 1b3adaf..4f3cfc4 100755 --- a/charts/opencost/Chart.yaml +++ b/charts/opencost/Chart.yaml @@ -9,7 +9,7 @@ keywords: - kubecost - opencost - monitoring -version: 1.20.3 +version: 1.21.0 maintainers: - name: mattray url: https://mattray.dev diff --git a/charts/opencost/templates/deployment.yaml b/charts/opencost/templates/deployment.yaml index 807bce3..25a45e0 100644 --- a/charts/opencost/templates/deployment.yaml +++ b/charts/opencost/templates/deployment.yaml @@ -11,11 +11,7 @@ spec: replicas: {{ .Values.opencost.exporter.replicas }} selector: matchLabels: {{- include "opencost.selectorLabels" . | nindent 6 }} - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate + strategy: {{ toYaml .Values.updateStrategy | nindent 4 }} template: metadata: labels: diff --git a/charts/opencost/values.yaml b/charts/opencost/values.yaml index dcb33b5..1a104e7 100644 --- a/charts/opencost/values.yaml +++ b/charts/opencost/values.yaml @@ -18,6 +18,12 @@ serviceAccount: # -- Whether pods running as this service account should have an API token automatically mounted automountServiceAccountToken: true +# -- Strategy to be used for the Deployment +updateStrategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + type: RollingUpdate # -- Annotations to add to the all the resources annotations: {} # -- Annotations to add to the OpenCost Pod