fix: [redis] no envoyfilter if istio is disabled

This commit is contained in:
Stefan Reimer 2021-09-01 14:23:01 +02:00
parent a4329a1937
commit a729c539a4
4 changed files with 4 additions and 3 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v2
name: kubezero-redis name: kubezero-redis
description: KubeZero Umbrella Chart for Redis HA description: KubeZero Umbrella Chart for Redis HA
type: application type: application
version: 0.3.3 version: 0.3.4
home: https://kubezero.com home: https://kubezero.com
icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png icon: https://cdn.zero-downtime.net/assets/kubezero/logo-small-64.png
keywords: keywords:

View File

@ -1,4 +1,4 @@
{{- if index .Values "redis-cluster" "enabled" }} {{- if and ( index .Values "redis-cluster" "enabled" ) .Values.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter kind: EnvoyFilter
metadata: metadata:

View File

@ -1,4 +1,4 @@
{{- if index .Values "redis-cluster" "enabled" }} {{- if and ( index .Values "redis-cluster" "enabled" ) .Values.istio.enabled }}
apiVersion: networking.istio.io/v1alpha3 apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter kind: EnvoyFilter
metadata: metadata:

View File

@ -9,4 +9,5 @@ spec:
claimName: {{ $ssg.claimName }} claimName: {{ $ssg.claimName }}
schedule: schedule:
{{- toYaml $ssg.schedule | nindent 4 }} {{- toYaml $ssg.schedule | nindent 4 }}
---
{{- end }} {{- end }}