Skip to content

Commit

Permalink
feat: add pod toleration in aerospike (#8)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
surajgour-d11 authored Dec 11, 2023
1 parent c46d188 commit 894810e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions charts/aerospike/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: aerospike
description: Aerospike helm chart
version: 1.0.0
appVersion: "5.6.0.15"
version: 1.1.0
appVersion: "6.3.0.4"
keywords:
- aerospike
dependencies:
Expand Down
1 change: 1 addition & 0 deletions charts/aerospike/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand Down
3 changes: 3 additions & 0 deletions charts/aerospike/templates/statefulset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down
11 changes: 11 additions & 0 deletions charts/aerospike/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
##
Expand Down

0 comments on commit 894810e

Please sign in to comment.