Skip to content

Commit

Permalink
fix: copy waste fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
llaszkie committed Aug 16, 2023
1 parent c5a0c25 commit d2f3ad1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ spec:
valueFrom:
secretKeyRef:
key: {{ $secret_key }}
name: {{ template "quarkus.fullname" $ }}-env
name: {{ template "nextjs.fullname" $ }}-env
{{- end }}
{{- end }}

Expand Down
2 changes: 1 addition & 1 deletion templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
prometheus.io/ingress_path: '{{ .Values.routing.prometheus.ingress_path | default $.Values.livenessProbe.url }}'
{{- end }}
{{- if .Values.routing.stripprefix }}
traefik.ingress.kubernetes.io/router.middlewares: '{{ .Release.Namespace }}-{{ template "quarkus.fullname" $ }}-middleware@kubernetescrd'
traefik.ingress.kubernetes.io/router.middlewares: '{{ .Release.Namespace }}-{{ template "nextjs.fullname" $ }}-middleware@kubernetescrd'
{{- end }}
{{ toYaml .Values.routing.ingress.annotations | indent 4 }}
spec:
Expand Down
6 changes: 3 additions & 3 deletions templates/traefik.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ spec:
routes:
- kind: Rule
{{ if .Values.routing.ingress.host.override }}
match: Host(`{{ .Values.routing.ingress.host.override }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "quarkus.traefik.path" $ }}
match: Host(`{{ .Values.routing.ingress.host.override }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "nextjs.traefik.path" $ }}
{{ else if .Values.routing.ingress.host.name }}
match: Host(`{{ .Values.routing.ingress.host.name }}-{{ .Release.Namespace }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "quarkus.traefik.path" $ }}
match: Host(`{{ .Values.routing.ingress.host.name }}-{{ .Release.Namespace }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "nextjs.traefik.path" $ }}
{{ else }}
match: Host(`{{ template "nextjs.fullname" $ }}-{{ .Release.Namespace }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "quarkus.traefik.path" $ }}
match: Host(`{{ template "nextjs.fullname" $ }}-{{ .Release.Namespace }}.{{ .Values.global.default_url | default .Values.routing.default_url }}`){{ include "nextjs.traefik.path" $ }}
{{- end }}
{{- if .Values.routing.stripprefix }}
middlewares:
Expand Down

0 comments on commit d2f3ad1

Please sign in to comment.