Skip to content

Commit

Permalink
feat: fix middleware name
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Crty committed Nov 3, 2024
1 parent 7c62c46 commit c71bfc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion helm-charts/generic-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
name: generic-app
description: A Helm Chart for Generic App
type: application
version: 0.3.6
version: 0.3.7
2 changes: 1 addition & 1 deletion helm-charts/generic-app/templates/middleware.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: {{ $fullName }}-redirect-to-{{ .to | include "toSlug" }}
name: {{ $.Release.Namespace }}-{{ $fullName }}-redirect-to-{{ .to | include "toSlug" }}
labels:
{{- include "generic-app.labels" $ | nindent 4 }}
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ should create middleware redirections:
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: generic-app
helm.sh/chart: generic-app-0.1.0
name: test-generic-app-redirect-to-crty-dev
name: NAMESPACE-test-generic-app-redirect-to-crty-dev
spec:
redirectRegex:
permanent: true
Expand Down

0 comments on commit c71bfc9

Please sign in to comment.