Skip to content

Commit 2389f9c

Browse files
authored
fix: add webhook condition to service template (#1418)
- Updated the redis-operator version in Chart.yaml to 0.21.1. - Added a conditional statement in service.yaml to include webhook configuration based on user-defined values. fix #1440 Signed-off-by: yangw <[email protected]>
1 parent ae4bef1 commit 2389f9c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

charts/redis-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
apiVersion: v2
3-
version: 0.21.0
3+
version: 0.21.1
44
appVersion: "0.21.0"
55
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
66
engine: gotpl

charts/redis-operator/templates/service.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{ if .Values.redisOperator.webhook }}
12
apiVersion: v1
23
kind: Service
34
metadata:
@@ -18,3 +19,4 @@ spec:
1819
targetPort: 9443
1920
selector:
2021
name: {{ .Values.redisOperator.name }}
22+
{{ end }}

0 commit comments

Comments
 (0)