Skip to content

Commit 894810e

Browse files
feat: add pod toleration in aerospike (#8)
* feat: add pod toleration in aerospike Signed-off-by: surajgour-d11 <suraj.gour@dream11.com> * feat: update app version Signed-off-by: surajgour-d11 <suraj.gour@dream11.com> * feat: update chart testing action version Signed-off-by: surajgour-d11 <suraj.gour@dream11.com> --------- Signed-off-by: surajgour-d11 <suraj.gour@dream11.com>
1 parent c46d188 commit 894810e

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
check-latest: true
3131

3232
- name: Set up chart-testing
33-
uses: helm/chart-testing-action@v2.4.0
33+
uses: helm/chart-testing-action@v2.6.1
3434

3535
- name: Run chart-testing (list-changed)
3636
id: list-changed

charts/aerospike/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
apiVersion: v2
22
name: aerospike
33
description: Aerospike helm chart
4-
version: 1.0.0
5-
appVersion: "5.6.0.15"
4+
version: 1.1.0
5+
appVersion: "6.3.0.4"
66
keywords:
77
- aerospike
88
dependencies:

charts/aerospike/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ The command removes all the Kubernetes components associated with the chart and
8080
| Name | Description | Value |
8181
| ------------------------------------ | ------------------------------------------------ | --------------- |
8282
| `replicaCount` | Number of Aerospike replicas | `1` |
83+
| `tolerations ` | Toleration for pod | `[]` |
8384
| `nodeSelector` | Node labels for pod assignment | `{}` |
8485
| `updateStrategy.type` | updateStrategy for Aerospike statefulset | `RollingUpdate` |
8586
| `podManagementPolicy` | StatefulSet pod management policy | `OrderedReady` |

charts/aerospike/templates/statefulset.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ spec:
3030
{{- end }}
3131
{{- end }}
3232
spec:
33+
{{- if .Values.tolerations }}
34+
tolerations: {{- include "common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
35+
{{- end }}
3336
nodeSelector: {{- include "common.tplvalues.render" (dict "value" .Values.nodeSelector "context" $) | nindent 8 }}
3437
{{- include "aerospike.imagePullSecrets" . | nindent 6 }}
3538
serviceAccountName: {{ template "aerospike.serviceAccountName" . }}

charts/aerospike/values.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,17 @@ replicaCount: 1
128128
##
129129
nodeSelector: {}
130130

131+
## @param tolerations Toleration for pod
132+
## For example:
133+
## tolerations:
134+
## - key: "key1"
135+
## operator: "Equal"
136+
## value: "value1"
137+
## effect: "NoSchedule"
138+
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/
139+
##
140+
tolerations: []
141+
131142
## @param updateStrategy.type updateStrategy for Aerospike statefulset
132143
## ref: https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#update-strategies
133144
##

0 commit comments

Comments
 (0)