Skip to content

Commit

Permalink
Conditional host/ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Crty committed Aug 27, 2023
1 parent a018308 commit e550f33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/generic-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: generic-app
description: A Helm Chart for Generic App
type: application
version: 0.1.9
version: 0.1.10
sources:
- https://github.com/David-Crty/helm-chart
maintainers:
Expand Down
4 changes: 3 additions & 1 deletion charts/generic-app/templates/ingressroute.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.host }}
{{- $fullName := include "generic-app.fullname" . -}}
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
Expand Down Expand Up @@ -45,4 +46,5 @@ metadata:
spec:
redirectScheme:
scheme: https
permanent: true
permanent: true
{{- end }}
1 change: 1 addition & 0 deletions charts/generic-app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ appName: demo-app
image: hello-world
port: 80
host: hello-world.com
https: false
healthCheckPath: ""
prometheus:
enabled: false
Expand Down

0 comments on commit e550f33

Please sign in to comment.