diff --git a/charts/hub/Chart.yaml b/charts/hub/Chart.yaml index d226f78..5f70867 100644 --- a/charts/hub/Chart.yaml +++ b/charts/hub/Chart.yaml @@ -16,7 +16,7 @@ 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.68.0 +version: 0.69.0 # 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 diff --git a/charts/hub/templates/kerberos-hub/hub-api.yaml b/charts/hub/templates/kerberos-hub/hub-api.yaml index 45bace8..5a1bcd2 100644 --- a/charts/hub/templates/kerberos-hub/hub-api.yaml +++ b/charts/hub/templates/kerberos-hub/hub-api.yaml @@ -96,6 +96,7 @@ spec: servicePort: 8081 {{- end }} {{ end }} +{{- if eq .Values.kerberoshub.oauth2Proxy.enabled true }} --- apiVersion: networking.k8s.io/v1 kind: Ingress @@ -109,6 +110,10 @@ metadata: kubernetes.io/tls-acme: "true" nginx.ingress.kubernetes.io/ssl-redirect: "true" nginx.ingress.kubernetes.io/enable-cors: "true" + nginx.ingress.kubernetes.io/server-snippet: | + if ($request_method = "OPTIONS") { + return 200; + } {{- end }} spec: ingressClassName: nginx @@ -127,6 +132,7 @@ spec: - hosts: - "{{ .Values.kerberoshub.api.url }}" secretName: +{{- end }} --- apiVersion: apps/v1 kind: Deployment