Skip to content

Commit

Permalink
Merge pull request #842 from tharindu1st/httproute-partition
Browse files Browse the repository at this point in the history
fix enforcer filter
  • Loading branch information
tharindu1st authored Mar 14, 2023
2 parents 452fd51 + d1b087c commit d6a85fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
14 changes: 14 additions & 0 deletions helm-charts/templates/data-plane/gateway-components/log-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ data:
host = "{{ template "apk-helm.resource.prefix" . }}-management-server.{{ .Release.Namespace }}.svc"
{{end}}
{{ if and .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs.filters }}
{{ range $index, $filter := .Values.wso2.apk.dp.gatewayRuntime.deployment.enforcer.configs.filters}}
[[enforcer.filters]]
className = "{{$filter.className}}"
position = {{$filter.position}}
{{ if $filter.properties }}
[enforcer.filters.configProperties]
{{range $key, $value := $filter.properties}}
{{$value.name}} = "{{$value.value}}"
{{end}}
{{end}}
{{end}}
{{end}}

config.toml.template: |
# The configuration file for mgw
Expand Down
7 changes: 6 additions & 1 deletion helm-charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,12 @@ wso2:
# certificatesSecret: "router-cert"
# certKeyFilename: ""
# certFilename: ""

# filters:
# - className: org.wso2.micro.gateway.enforcer.filter.RequestFilter
# position: 1
# properties:
# - name: filterConfig1
# value: filterConfig1
certmanager:
enabled: true
enableClusterIssuer: true
Expand Down

0 comments on commit d6a85fe

Please sign in to comment.