Skip to content

Commit

Permalink
make ingressClassName configurable in helm chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Lusengeri committed Dec 4, 2024
1 parent d39f061 commit 1c8c103
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nginx-serve/helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
environment: {{ .Values.environment }}
release: {{ .Release.Name }}
spec:
ingressClassName: nginx
ingressClassName: {{ required "ingress.className" .Values.ingress.className | quote }}
rules:
- host: {{ required "ingress.host" .Values.ingress.host | quote }}
http:
Expand Down
1 change: 1 addition & 0 deletions nginx-serve/helm/values-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ image:

ingress:
host: alert-hub-1.ifrc-go.org
className: nginx

env:
APP_TITLE: "Alert hub"
Expand Down
1 change: 1 addition & 0 deletions nginx-serve/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources:

ingress:
host:
className:

env:
APP_TITLE: "Alert hub"
Expand Down

0 comments on commit 1c8c103

Please sign in to comment.