From a4887c733e31e44c7d03223f2af1918e733d2e37 Mon Sep 17 00:00:00 2001 From: yehielnetapp Date: Thu, 26 Oct 2023 10:45:34 +0300 Subject: [PATCH] hardcoded updateStrategy --- charts/ocean-network-client/README.md | 6 +++--- charts/ocean-network-client/templates/daemon_set.yaml | 6 +++--- charts/ocean-network-client/values.yaml | 5 ----- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/charts/ocean-network-client/README.md b/charts/ocean-network-client/README.md index 36b426b..b8bd0ba 100644 --- a/charts/ocean-network-client/README.md +++ b/charts/ocean-network-client/README.md @@ -47,12 +47,12 @@ helm install my-release spot/ocean-network-client | image.pullPolicy | Optional | `"Always"` | Image pull policy. | | image.pullSecrets | Optional | `[]` | Image pull secrets. | | image.repository | Optional | `"public.ecr.aws/spotinst/spot-network-client"` | Image repository. | -| image.tag | Optional | `""` | Image tag. Defaults to `.Chart.AppVersion`. | +| image.tag | Optional | `""` | Image tag. Defaults to `.Chart.AppVersion`. | | namespace | Optional | `"kube-system"` | Namespace where components should be installed. | | oceanController.configMapName | Optional | `"spotinst-kubernetes-cluster-controller-config"` | ConfigMap name. | | oceanController.secretName | Optional | `"spotinst-kubernetes-cluster-controller"` | Secret name. | -| resources | Optional | `{"limits":{"cpu":"300m","memory":"500Mi"},"requests":{"cpu":"10m","memory":"100Mi"}}` | Resource requests and limits. Ref: http://kubernetes.io/docs/user-guide/compute-resources/ | +| resources | Optional | `{"limits":{"cpu":"300m","memory":"500Mi"},"requests":{"cpu":"10m","memory":"100Mi"}}` | Resource requests and limits. Ref: http://kubernetes.io/docs/user-guide/compute-resources/ | | tolerations | Optional | `[{"operator":"Exists"}]` | Tolerations - Enable pods to run an all nodes in cluster Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ | -| updateStrategy | Optional | `{"type":"RollingUpdate"},"rollingUpdate":{"maxSurge":"0","maxUnavailable":"10%"}}` | updateStrategy. Ref: https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/ | + ---------------------------------------------- Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0) diff --git a/charts/ocean-network-client/templates/daemon_set.yaml b/charts/ocean-network-client/templates/daemon_set.yaml index 9df3001..8d97f17 100644 --- a/charts/ocean-network-client/templates/daemon_set.yaml +++ b/charts/ocean-network-client/templates/daemon_set.yaml @@ -7,10 +7,10 @@ spec: selector: matchLabels: {{- include "ocean-network-client.daemon-set.labels" . | nindent 6 }} - {{- with .Values.updateStrategy }} updateStrategy: - {{- toYaml . | nindent 4 }} - {{- end }} + rollingUpdate: + maxSurge: 0 + maxUnavailable: 10% template: metadata: labels: diff --git a/charts/ocean-network-client/values.yaml b/charts/ocean-network-client/values.yaml index db09386..869286c 100644 --- a/charts/ocean-network-client/values.yaml +++ b/charts/ocean-network-client/values.yaml @@ -31,8 +31,3 @@ resources: tolerations: - operator: "Exists" -updateStrategy: - type: RollingUpdate - rollingUpdate: - maxSurge: 0 - maxUnavailable: 10%