Skip to content

Commit a2f7243

Browse files
authored
feat: Add PDB values in redis replication (#1461)
* feat: Add PDB values in redis replication Signed-off-by: yangw <[email protected]> * add docs Signed-off-by: yangw <[email protected]> * fix lint Signed-off-by: yangw <[email protected]> --------- Signed-off-by: yangw <[email protected]>
1 parent 6d294f5 commit a2f7243

File tree

5 files changed

+18
-4
lines changed

5 files changed

+18
-4
lines changed

api/common/v1beta2/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ limitations under the License.
1818
// These types are shared across different Redis resource types.
1919
//
2020
// +groupName=redis.redis.opstreelabs.in
21-
package v1beta2
21+
package v1beta2

charts/redis-replication/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: redis-replication
33
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
4-
version: 0.16.7
5-
appVersion: "0.16.7"
4+
version: 0.16.8
5+
appVersion: "0.16.8"
66
type: application
77
engine: gotpl
88
maintainers:

charts/redis-replication/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ helm delete <my-release> --namespace <namespace>
6565
| initContainer.resources | object | `{}` | |
6666
| labels | object | `{}` | |
6767
| nodeSelector | object | `{}` | |
68+
| pdb.enabled | bool | `false` | |
69+
| pdb.maxUnavailable | string | `nil` | |
70+
| pdb.minAvailable | int | `1` | |
6871
| podSecurityContext.fsGroup | int | `1000` | |
6972
| podSecurityContext.runAsUser | int | `1000` | |
7073
| priorityClassName | string | `""` | |

charts/redis-replication/templates/redis-replication.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,10 @@ spec:
9595
{{- if .Values.env }}
9696
env: {{ toYaml .Values.env | nindent 4 }}
9797
{{- end }}
98+
{{- if .Values.pdb.enabled }}
99+
pdb:
100+
enabled: {{ .Values.pdb.enabled }}
101+
minAvailable: {{ .Values.pdb.minAvailable }}
102+
maxUnavailable: {{ .Values.pdb.maxUnavailable }}
103+
{{- end }}
98104

charts/redis-replication/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,4 +155,9 @@ acl:
155155

156156
env: []
157157
# - name: VAR_NAME
158-
# value: "value1"
158+
# value: "value1"
159+
160+
pdb:
161+
enabled: false
162+
minAvailable: 1
163+
maxUnavailable: null

0 commit comments

Comments
 (0)