diff --git a/templates/common-allow-via-knative-serving.yaml b/templates/common-allow-via-knative-serving.yaml index 76fdf31..b74020a 100644 --- a/templates/common-allow-via-knative-serving.yaml +++ b/templates/common-allow-via-knative-serving.yaml @@ -46,7 +46,6 @@ spec: - "*.{{ $v }}.svc" - "*.{{ $v }}.svc.{{ $.Values.cluster.domain }}" {{- end }} - methods: [ "POST" ] when: - key: request.headers[Kn-Namespace] values: diff --git a/templates/eventing-allow-ns-to-kafka-broker-reply.yaml b/templates/eventing-allow-ns-to-kafka-broker-reply.yaml index 4c05f1b..986bbb9 100644 --- a/templates/eventing-allow-ns-to-kafka-broker-reply.yaml +++ b/templates/eventing-allow-ns-to-kafka-broker-reply.yaml @@ -23,7 +23,6 @@ spec: {{- range $v := $.Values.namespaces }} - "/{{ $v }}/*" {{- end }} - methods: [ "POST" ] when: - key: request.headers[Kn-Namespace] values: diff --git a/templates/eventing-allow-ns-to-mt-channel-based-broker-reply.yaml b/templates/eventing-allow-ns-to-mt-channel-based-broker-reply.yaml index cb9f199..2435138 100644 --- a/templates/eventing-allow-ns-to-mt-channel-based-broker-reply.yaml +++ b/templates/eventing-allow-ns-to-mt-channel-based-broker-reply.yaml @@ -25,7 +25,6 @@ spec: {{- range $v := $.Values.namespaces }} - "/{{ $v }}/*" {{- end }} - methods: [ "POST" ] when: - key: request.headers[Kn-Namespace] values: diff --git a/templates/eventing-allow-to-knative-eventing-receiver.yaml b/templates/eventing-allow-to-knative-eventing-receiver.yaml index 24b1d4d..e019ed3 100644 --- a/templates/eventing-allow-to-knative-eventing-receiver.yaml +++ b/templates/eventing-allow-to-knative-eventing-receiver.yaml @@ -26,13 +26,13 @@ spec: {{- range $v := $.Values.namespaces }} - "/{{ $v }}/*" {{- end }} - methods: [ "POST" ] - operation: hosts: {{- range $v := $.Values.namespaces }} + - "*.{{ $v }}" + - "*.{{ $v }}.svc" - "*.{{ $v }}.svc.{{ $.Values.cluster.domain }}" {{- end }} - methods: [ "POST" ] - from: - source: namespaces: [ "knative-eventing" ] @@ -44,9 +44,10 @@ spec: - operation: hosts: {{- range $v := $.Values.namespaces }} + - "*.{{ $v }}" + - "*.{{ $v }}.svc" - "*.{{ $v }}.svc.{{ $.Values.cluster.domain }}" {{- end }} - methods: [ "POST" ] when: - key: request.headers[Kn-Namespace] values: @@ -66,7 +67,6 @@ spec: {{- range $v := $.Values.namespaces }} - "/{{ $v }}/*" {{- end }} - methods: [ "POST" ] when: - key: request.headers[Kn-Namespace] values: