Skip to content

Commit

Permalink
added middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
joy2fun committed Dec 25, 2023
1 parent fe2c2f6 commit 2b6f46d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ 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.1.0
version: 0.1.1

# 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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
appVersion: "0.1.1"
3 changes: 2 additions & 1 deletion app/templates/ingressroute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ spec:
routes:
- match: Host(`{{ .Values.ingressRoute.host }}`)
kind: Rule
middlewares: {{ .Values.ingressRoute.middlewares }}
services:
- name: {{ include "app.fullname" . }}
port: {{ .Values.service.port }}
{{- with .Values.ingressRoute.additionalRoutes }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}

{{- if .Values.ingressRoute.tlsName }}
tls:
Expand Down
5 changes: 3 additions & 2 deletions app/values.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
replicaCount: 1

image:
repository: alpine
repository: nginx
pullPolicy: Always
# IfNotPresent
tag: "latest"
tag: "alpine"

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -58,6 +58,7 @@ ingressRoute:
# - web
host: ""
tlsName: ""
middlewares: []
additionalRoutes: []
# - kind: Rule
# match: Host(`host`) && PathPrefix(`/api`)
Expand Down

0 comments on commit 2b6f46d

Please sign in to comment.