From fe725441443a49f52a5e614d8a86f16a8c6ea519 Mon Sep 17 00:00:00 2001 From: mpw Date: Wed, 8 Feb 2023 03:23:55 -0300 Subject: [PATCH] working release --- charts/hub-gateway/Chart.yaml | 4 ++-- charts/hub-gateway/templates/apisixroute.yaml | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/charts/hub-gateway/Chart.yaml b/charts/hub-gateway/Chart.yaml index 8c3502d..e6cd5f5 100644 --- a/charts/hub-gateway/Chart.yaml +++ b/charts/hub-gateway/Chart.yaml @@ -18,13 +18,13 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.7 +version: 0.1.8 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.1.7" +appVersion: "0.1.8" sources: - https://github.com/holaplex/helm-charts diff --git a/charts/hub-gateway/templates/apisixroute.yaml b/charts/hub-gateway/templates/apisixroute.yaml index a41c153..11fd2fb 100644 --- a/charts/hub-gateway/templates/apisixroute.yaml +++ b/charts/hub-gateway/templates/apisixroute.yaml @@ -19,7 +19,7 @@ spec: servicePort: {{ .servicePort }} match: hosts: - - {{ print .subdomain "." $domain }} + - {{ print .subdomain "." $domain | quote}} paths: {{ .paths | toYaml | nindent 7 }} methods: @@ -33,6 +33,10 @@ spec: expose_user_data: true expose_user_id: true session_cookie_name: {{ $sessionCookie }} + - name: hub-orgs + enable: true + config: + host: {{ print "http://" $apisixPlugins.hubOrgs.serviceName "." $namespace ".svc:" $apisixPlugins.hubOrgs.servicePort "/v1" | quote }} {{ end }} {{- if .regex_uri}} - name: proxy-rewrite @@ -42,13 +46,7 @@ spec: {{ .headers | toYaml | nindent 9 }} regex_uri: {{ .regex_uri | toYaml | nindent 9 }} - {{ end }} - {{- if .require_auth}} - - name: hub-orgs - enable: true - config: - host: {{ print "http://" $apisixPlugins.hubOrgs.serviceName "." $namespace ".svc:" $apisixPlugins.hubOrgs.servicePort "/v1" | quote }} - {{- end }} + {{ end }} {{- if .policy}} - name: opa-mod enable: true