Skip to content

Commit

Permalink
Merge pull request #2 from kerberos-io/feature/add-support-for-oauth2…
Browse files Browse the repository at this point in the history
…-proxy

Upgrade to 0.58.0
  • Loading branch information
cedricve authored Oct 4, 2024
2 parents 5a506cf + f65a75a commit d23dd5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/hub/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.57.0
version: 0.58.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
Expand Down
14 changes: 7 additions & 7 deletions charts/hub/templates/kerberos-hub/hub-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ spec:
selector:
app: hub-frontend
---
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
apiVersion: networking.k8s.io/v1
{{ else }}
{{- else }}
apiVersion: networking.k8s.io/v1beta1
{{ end }}
{{- end }}
kind: Ingress
metadata:
name: hub-frontend-ingress
annotations:
kubernetes.io/ingress.class: {{ .Values.ingress }}
{{ if .Values.kerberoshub.oauth2Proxy.enabled }}
{{- if .Values.kerberoshub.oauth2Proxy.enabled }}
nginx.ingress.kubernetes.io/auth-url: "https://$host/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://$host/oauth2/start?rd=$escaped_request_uri"
{{- end }}
Expand All @@ -38,7 +38,7 @@ spec:
tls:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
rules:
- host: "{{ .Values.kerberoshub.frontend.url }}"
http:
Expand Down Expand Up @@ -75,7 +75,7 @@ spec:
number: 80
{{- end }}

{{ else }}
{{- else }}
rules:
- host: "{{ .Values.kerberoshub.frontend.url }}"
http:
Expand All @@ -102,7 +102,7 @@ spec:
serviceName: hub-frontend-svc
servicePort: 80
{{- end }}
{{ end }}
{{- end }}
{{- if .Values.kerberoshub.oauth2Proxy.enabled -}}
---
apiVersion: networking.k8s.io/v1
Expand Down

0 comments on commit d23dd5f

Please sign in to comment.