Skip to content

Commit

Permalink
fix: Remove duplicated AuthorizationPolicy (#75)
Browse files Browse the repository at this point in the history
Remove duplicated AuthorizationPolicy
  • Loading branch information
ciiiii authored Sep 12, 2024
1 parent 1498f47 commit 587c786
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 76 deletions.
20 changes: 0 additions & 20 deletions modules/olm-subscriptions/chart/templates/bookkeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,4 @@ spec:
envFrom:
{{- toYaml .Values.bookkeeper.config.envFrom | nindent 4 }}
{{- end }}
---
{{- if and .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: {{ .Values.bookkeeper.name }}
namespace: {{ .Values.istio.rootNamespace }}
spec:
selector:
matchLabels:
# well-known labels
cloud.streamnative.io/app: pulsar
cloud.streamnative.io/component: bookkeeper
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/{{ .Values.install_namespace }}/sa/bookkeeper-operator-controller-manager"]
{{- end }}

{{- end }}
19 changes: 0 additions & 19 deletions modules/olm-subscriptions/chart/templates/pulsar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,4 @@ spec:
envFrom:
{{- toYaml .Values.pulsar.config.envFrom | nindent 4 }}
{{- end }}
---
{{- if and .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: {{ .Values.pulsar.name }}
namespace: {{ .Values.istio.rootNamespace }}
spec:
selector:
matchLabels:
# well-known labels
cloud.streamnative.io/app: pulsar
cloud.streamnative.io/component: broker
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/{{ .Values.install_namespace }}/sa/pulsar-operator-controller-manager"]
{{- end }}
{{- end }}
18 changes: 0 additions & 18 deletions modules/olm-subscriptions/chart/templates/sn-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,22 +40,4 @@ spec:
envFrom:
{{- toYaml .Values.sn_operator.config.envFrom | nindent 4 }}
{{- end }}
---
{{- if and .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: {{ .Values.sn_operator.name }}
namespace: {{ .Values.istio.rootNamespace }}
spec:
selector:
matchLabels:
# well-known labels
cloud.streamnative.io/app: pulsar
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/{{ .Values.install_namespace }}/sa/sn-operator-controller-manager"]
{{- end }}
{{- end }}
19 changes: 0 additions & 19 deletions modules/olm-subscriptions/chart/templates/zookeeper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,4 @@ spec:
envFrom:
{{- toYaml .Values.zookeeper.config.envFrom | nindent 4 }}
{{- end }}
---
{{- if and .Values.istio.enabled }}
apiVersion: security.istio.io/v1beta1
kind: AuthorizationPolicy
metadata:
name: {{ .Values.zookeeper.name }}
namespace: {{ .Values.istio.rootNamespace }}
spec:
selector:
matchLabels:
# well-known labels
cloud.streamnative.io/app: pulsar
cloud.streamnative.io/component: zookeeper
action: ALLOW
rules:
- from:
- source:
principals: ["cluster.local/ns/{{ .Values.install_namespace }}/sa/zookeeper-operator-controller-manager"]
{{- end }}
{{- end }}

0 comments on commit 587c786

Please sign in to comment.