Skip to content

Commit

Permalink
fix: unknown field error when upgrade chart (#1034)
Browse files Browse the repository at this point in the history
Signed-off-by: drivebyer <[email protected]>
  • Loading branch information
drivebyer authored Jul 24, 2024
1 parent b343653 commit e3655af
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 12 deletions.
4 changes: 3 additions & 1 deletion charts/redis-cluster/templates/redis-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ spec:
name: {{ .Values.redisCluster.redisSecret.secretName | quote }}
key: {{ .Values.redisCluster.redisSecret.secretKey | quote }}
{{- end }}
minReadySeconds: {{ .Values.redisCluster.minReadySeconds | default 0 }}
{{- if .Values.redisCluster.minReadySeconds }}
minReadySeconds: {{ .Values.redisCluster.minReadySeconds}}
{{- end }}

{{- if .Values.storageSpec }}
storage: {{ toYaml .Values.storageSpec | nindent 4 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/redis-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ redisCluster:
# limits:
# cpu: 100m
# memory: 128Mi
minReadySeconds: 0
leader:
replicas: 3
serviceType: ClusterIP
Expand All @@ -43,7 +44,6 @@ redisCluster:
enabled: false
maxUnavailable: 1
minAvailable: 1
# minReadySeconds: 0

follower:
replicas: 3
Expand Down
4 changes: 2 additions & 2 deletions charts/redis-replication/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ maintainers:
- name: shubham-cmyk
sources:
- https://github.com/ot-container-kit/redis-operator
version: 0.16.1
appVersion: "0.16.1"
version: 0.16.2
appVersion: "0.16.2"
home: https://github.com/ot-container-kit/redis-operator
keywords:
- operator
Expand Down
4 changes: 3 additions & 1 deletion charts/redis-replication/templates/redis-replication.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ spec:
{{- if .Values.redisReplication.ignoreAnnotations}}
ignoreAnnotations: {{ toYaml .Values.redisReplication.ignoreAnnotations | nindent 6 }}
{{- end }}
minReadySeconds: {{ .Values.redisReplication.minReadySeconds | default 0 }}
{{- if .Values.redisReplication.minReadySeconds }}
minReadySeconds: {{ .Values.redisReplication.minReadySeconds}}
{{- end }}

redisExporter:
enabled: {{ .Values.redisExporter.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion charts/redis-replication/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ redisReplication:
# memory: 128Mi
ignoreAnnotations: []
# - "redis.opstreelabs.in/ignore"
# minReadySeconds: 0
minReadySeconds: 0

# Overwite name for resources
# name: ""
Expand Down
4 changes: 2 additions & 2 deletions charts/redis-sentinel/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: v2
name: redis-sentinel
description: Provides easy redis setup definitions for Kubernetes services, and deployment.
version: 0.16.2
appVersion: "0.16.2"
version: 0.16.3
appVersion: "0.16.3"
home: https://github.com/ot-container-kit/redis-operator
sources:
- https://github.com/ot-container-kit/redis-operator
Expand Down
4 changes: 3 additions & 1 deletion charts/redis-sentinel/templates/redis-sentinel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ spec:
{{- if .Values.redisSentinel.ignoreAnnotations}}
ignoreAnnotations: {{ toYaml .Values.redisSentinel.ignoreAnnotations | nindent 6 }}
{{- end }}
minReadySeconds: {{ .Values.redisSentinel.minReadySeconds | default 0 }}
{{- if .Values.redisSentinel.minReadySeconds }}
minReadySeconds: {{ .Values.redisSentinel.minReadySeconds }}
{{- end }}

redisExporter:
enabled: {{ .Values.redisExporter.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion charts/redis-sentinel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ redisSentinel:
# memory: 128Mi
ignoreAnnotations: []
# - "redis.opstreelabs.in/ignore"
# minReadySeconds: 0
minReadySeconds: 0

# Overwite name for resources
# name: ""
Expand Down
4 changes: 3 additions & 1 deletion charts/redis/templates/redis-standalone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ spec:
{{- if .Values.redisStandalone.ignoreAnnotations}}
ignoreAnnotations: {{ toYaml .Values.redisStandalone.ignoreAnnotations | nindent 6 }}
{{- end }}
minReadySeconds: {{ .Values.redisStandalone.minReadySeconds | default 0 }}
{{- if .Values.redisStandalone.minReadySeconds }}
minReadySeconds: {{ .Values.redisStandalone.minReadySeconds }}
{{- end }}

redisExporter:
enabled: {{ .Values.redisExporter.enabled }}
Expand Down
2 changes: 1 addition & 1 deletion charts/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ redisStandalone:
# memory: 128Mi
ignoreAnnotations: []
# - "redis.opstreelabs.in/ignore"
# minReadySeconds: 0
minReadySeconds: 0

labels: {}
# foo: bar
Expand Down

0 comments on commit e3655af

Please sign in to comment.