Skip to content

Commit

Permalink
fix: docs routing
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed May 7, 2024
1 parent 6cac137 commit 2734bd9
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 31 deletions.
4 changes: 1 addition & 3 deletions docs/.helm/templates/20-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- $_ := set . "Version" ( splitList "/" .Values.global.github_ref | last ) }}
{{- if eq .Version "main" }}
{{- $_ := set . "VersionURLNormalized" "latest" }}
{{- $_ := set . "VersionURLNormalized" "v2" }}
{{- else }}
{{- $_ := set . "VersionURLNormalized" ( printf "%s" .Version | lower | replace "+" "-plus-" | replace "_" "-u-" ) }}
{{- end }}
Expand All @@ -16,8 +16,6 @@ metadata:
name: {{ .Chart.Name }}-{{ .VersionDNSNormalized }}-configurator
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /documentation/{{ .VersionURLNormalized }}/configurator.html
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Original-URI $request_uri;
Expand Down

0 comments on commit 2734bd9

Please sign in to comment.