diff --git a/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml b/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml index e78e4a895..318e340d8 100644 --- a/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml +++ b/charts/sn-platform-slim/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.bookkeeper.authorizationPolicy.from }} + - {{- if and .Values.bookkeeper.authorizationPolicy .Values.bookkeeper.authorizationPolicy.from }} from: {{ toYaml .Values.bookkeeper.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.bookkeeper.authorizationPolicy.to }} + {{- if and .Values.bookkeeper.authorizationPolicy .Values.bookkeeper.authorizationPolicy.to }} to: {{ toYaml .Values.bookkeeper.authorizationPolicy.to | indent 4 }} {{- else }} @@ -39,11 +39,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.autorecovery.authorizationPolicy.from }} + - {{- if and .Values.autorecovery.authorizationPolicy .Values.autorecovery.authorizationPolicy.from }} from: {{ toYaml .Values.autorecovery.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.autorecovery.authorizationPolicy.to }} + {{- if and .Values.autorecovery.authorizationPolicy .Values.autorecovery.authorizationPolicy.to }} to: {{ toYaml .Values.autorecovery.authorizationPolicy.to | indent 4 }} {{- else }} diff --git a/charts/sn-platform-slim/templates/broker/broker-authorizationpolicy.yaml b/charts/sn-platform-slim/templates/broker/broker-authorizationpolicy.yaml index bda6b7694..552c173eb 100644 --- a/charts/sn-platform-slim/templates/broker/broker-authorizationpolicy.yaml +++ b/charts/sn-platform-slim/templates/broker/broker-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.broker.authorizationPolicy.from }} + - {{- if and .Values.broker.authorizationPolicy .Values.broker.authorizationPolicy.from }} from: {{ toYaml .Values.broker.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.broker.authorizationPolicy.to }} + {{- if and .Values.broker.authorizationPolicy .Values.broker.authorizationPolicy.to }} to: {{ toYaml .Values.broker.authorizationPolicy.to | indent 4 }} {{- else }} diff --git a/charts/sn-platform-slim/templates/zookeeper/zookeeper-authorizationpolicy.yaml b/charts/sn-platform-slim/templates/zookeeper/zookeeper-authorizationpolicy.yaml index 2b72cdbd1..7c4e26b43 100644 --- a/charts/sn-platform-slim/templates/zookeeper/zookeeper-authorizationpolicy.yaml +++ b/charts/sn-platform-slim/templates/zookeeper/zookeeper-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.zookeeper.authorizationPolicy.from }} + - {{- if and .Values.zookeeper.authorizationPolicy .Values.zookeeper.authorizationPolicy.from }} from: {{ toYaml .Values.zookeeper.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.zookeeper.authorizationPolicy.to }} + {{- if and .Values.zookeeper.authorizationPolicy .Values.zookeeper.authorizationPolicy.to }} to: {{ toYaml .Values.zookeeper.authorizationPolicy.to | indent 4 }} {{- else }} diff --git a/charts/sn-platform/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml b/charts/sn-platform/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml index e78e4a895..318e340d8 100644 --- a/charts/sn-platform/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml +++ b/charts/sn-platform/templates/bookkeeper/bookkeeper-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.bookkeeper.authorizationPolicy.from }} + - {{- if and .Values.bookkeeper.authorizationPolicy .Values.bookkeeper.authorizationPolicy.from }} from: {{ toYaml .Values.bookkeeper.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.bookkeeper.authorizationPolicy.to }} + {{- if and .Values.bookkeeper.authorizationPolicy .Values.bookkeeper.authorizationPolicy.to }} to: {{ toYaml .Values.bookkeeper.authorizationPolicy.to | indent 4 }} {{- else }} @@ -39,11 +39,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.autorecovery.authorizationPolicy.from }} + - {{- if and .Values.autorecovery.authorizationPolicy .Values.autorecovery.authorizationPolicy.from }} from: {{ toYaml .Values.autorecovery.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.autorecovery.authorizationPolicy.to }} + {{- if and .Values.autorecovery.authorizationPolicy .Values.autorecovery.authorizationPolicy.to }} to: {{ toYaml .Values.autorecovery.authorizationPolicy.to | indent 4 }} {{- else }} diff --git a/charts/sn-platform/templates/broker/broker-authorizationpolicy.yaml b/charts/sn-platform/templates/broker/broker-authorizationpolicy.yaml index bda6b7694..552c173eb 100644 --- a/charts/sn-platform/templates/broker/broker-authorizationpolicy.yaml +++ b/charts/sn-platform/templates/broker/broker-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.broker.authorizationPolicy.from }} + - {{- if and .Values.broker.authorizationPolicy .Values.broker.authorizationPolicy.from }} from: {{ toYaml .Values.broker.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.broker.authorizationPolicy.to }} + {{- if and .Values.broker.authorizationPolicy .Values.broker.authorizationPolicy.to }} to: {{ toYaml .Values.broker.authorizationPolicy.to | indent 4 }} {{- else }} diff --git a/charts/sn-platform/templates/zookeeper/zookeeper-authorizationpolicy.yaml b/charts/sn-platform/templates/zookeeper/zookeeper-authorizationpolicy.yaml index 2b72cdbd1..7c4e26b43 100644 --- a/charts/sn-platform/templates/zookeeper/zookeeper-authorizationpolicy.yaml +++ b/charts/sn-platform/templates/zookeeper/zookeeper-authorizationpolicy.yaml @@ -10,11 +10,11 @@ metadata: namespace: {{ template "pulsar.namespace" . }} spec: rules: - - {{- if .Values.zookeeper.authorizationPolicy.from }} + - {{- if and .Values.zookeeper.authorizationPolicy .Values.zookeeper.authorizationPolicy.from }} from: {{ toYaml .Values.zookeeper.authorizationPolicy.from | indent 4 }} {{- end }} - {{- if .Values.zookeeper.authorizationPolicy.to }} + {{- if and .Values.zookeeper.authorizationPolicy .Values.zookeeper.authorizationPolicy.to }} to: {{ toYaml .Values.zookeeper.authorizationPolicy.to | indent 4 }} {{- else }}