From 4323e6d06a3c58d07f34c9f996c566799e596a78 Mon Sep 17 00:00:00 2001 From: surajgour-d11 Date: Mon, 11 Dec 2023 15:09:43 +0530 Subject: [PATCH 1/3] feat: add pod toleration in aerospike Signed-off-by: surajgour-d11 --- charts/aerospike/Chart.yaml | 2 +- charts/aerospike/templates/statefulset.yml | 3 +++ charts/aerospike/values.yaml | 11 +++++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/charts/aerospike/Chart.yaml b/charts/aerospike/Chart.yaml index 7afd839..eb1d147 100644 --- a/charts/aerospike/Chart.yaml +++ b/charts/aerospike/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 name: aerospike description: Aerospike helm chart -version: 1.0.0 +version: 1.1.0 appVersion: "5.6.0.15" keywords: - aerospike diff --git a/charts/aerospike/templates/statefulset.yml b/charts/aerospike/templates/statefulset.yml index d5223a7..6a78b64 100644 --- a/charts/aerospike/templates/statefulset.yml +++ b/charts/aerospike/templates/statefulset.yml @@ -30,6 +30,9 @@ spec: {{- end }} {{- end }} spec: + {{- if .Values.tolerations }} + tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }} + {{- end }} nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }} {{- include "aerospike.imagePullSecrets" . | nindent 6 }} serviceAccountName: {{ template "aerospike.serviceAccountName" . }} diff --git a/charts/aerospike/values.yaml b/charts/aerospike/values.yaml index 421f26d..f17950e 100644 --- a/charts/aerospike/values.yaml +++ b/charts/aerospike/values.yaml @@ -128,6 +128,17 @@ replicaCount: 1 ## nodeSelector: {} +## @param tolerations Toleration for pod +## For example: +## tolerations: +## - key: "key1" +## operator: "Equal" +## value: "value1" +## effect: "NoSchedule" +## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ +## +tolerations: [] + ## @param updateStrategy.type updateStrategy for Aerospike statefulset ## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies ## From 5863915843dc8a7cdfdc9ded0bc38ba60a133b8e Mon Sep 17 00:00:00 2001 From: surajgour-d11 Date: Mon, 11 Dec 2023 15:13:33 +0530 Subject: [PATCH 2/3] feat: update app version Signed-off-by: surajgour-d11 --- charts/aerospike/Chart.yaml | 2 +- charts/aerospike/README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/aerospike/Chart.yaml b/charts/aerospike/Chart.yaml index eb1d147..8dcff30 100644 --- a/charts/aerospike/Chart.yaml +++ b/charts/aerospike/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: aerospike description: Aerospike helm chart version: 1.1.0 -appVersion: "5.6.0.15" +appVersion: "6.3.0.4" keywords: - aerospike dependencies: diff --git a/charts/aerospike/README.md b/charts/aerospike/README.md index 306c596..f71703b 100644 --- a/charts/aerospike/README.md +++ b/charts/aerospike/README.md @@ -80,6 +80,7 @@ The command removes all the Kubernetes components associated with the chart and | Name | Description | Value | | ------------------------------------ | ------------------------------------------------ | --------------- | | `replicaCount` | Number of Aerospike replicas | `1` | +| `tolerations ` | Toleration for pod | `[]` | | `nodeSelector` | Node labels for pod assignment | `{}` | | `updateStrategy.type` | updateStrategy for Aerospike statefulset | `RollingUpdate` | | `podManagementPolicy` | StatefulSet pod management policy | `OrderedReady` | From 379fd8e78db586d5d12952f03d80cbcad325d96c Mon Sep 17 00:00:00 2001 From: surajgour-d11 Date: Mon, 11 Dec 2023 15:35:52 +0530 Subject: [PATCH 3/3] feat: update chart testing action version Signed-off-by: surajgour-d11 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0bcefe2..9419d53 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: check-latest: true - name: Set up chart-testing - uses: helm/chart-testing-action@v2.4.0 + uses: helm/chart-testing-action@v2.6.1 - name: Run chart-testing (list-changed) id: list-changed