Skip to content

Commit

Permalink
Merge pull request #6104 from werf/fix-docs-routing
Browse files Browse the repository at this point in the history
fix: docs routing
  • Loading branch information
ilya-lesikov committed May 7, 2024
2 parents 6cac137 + 2734bd9 commit 6581a30
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
@@ -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 6581a30

Please sign in to comment.