File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed
charts/odrl-authorization Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1- {{- if .Values.apisix.catchAllRoute.enabled }}
1+ {{ $ingressConfig := (index .Values.apisix "ingress-controller") }}
2+ {{- if and .Values.apisix.catchAllRoute.enabled $ingressConfig.enabled }}
23{{- $url := include "odrl-auth.parseURL" .Values.apisix.catchAllRoute.upstream.url | fromYaml -}}
34{{- if not $url.isService }}
45apiVersion : apisix.apache.org/v2
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ apiVersion: apisix.apache.org/v2
88kind : ApisixRoute
99metadata :
1010 name : {{ printf "%s-%s" $routeName "route" }}
11+ namespace : {{ default $.Release.Namespace $route.namespace | quote }}
1112spec :
1213 ingressClassName : {{ $ingressClassName }}
1314 http :
Original file line number Diff line number Diff line change @@ -78,7 +78,26 @@ apisix:
7878 host : ' http://localhost:8181'
7979 policy : policy/main
8080 with_body : true
81- # -- configuration of routes for apisix
81+ # -- configuration of routes for apisix. E.g.
82+ # uri: /*
83+ # host: host-name-test
84+ # type: Service
85+ # namespace: super-ns # release namespace by default
86+ # upstream:
87+ # nodes:
88+ # data-service-test:9090: 1
89+ # type: roundrobin
90+ # plugins:
91+ # openid-connect:
92+ # bearer_only: true
93+ # use_jwks: true
94+ # client_id: data-service
95+ # client_secret: unused
96+ # discovery: https://verifier:8080/services/data-service/.well-known/openid-configuration
97+ # opa:
98+ # host: "http://localhost:8181"
99+ # policy: policy/main
100+ # with_body: true
82101 routes : []
83102 etcd :
84103 enabled : true
You can’t perform that action at this time.
0 commit comments