Skip to content

Commit

Permalink
feat: Add Helm variable for ingress class name. (#387)
Browse files Browse the repository at this point in the history
Co-authored-by: Frederic Barriere <[email protected]>
  • Loading branch information
fredgate and Frederic Barriere authored Jun 22, 2023
1 parent a584da5 commit 2e7bb9e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contrib/kubernetes/helm/alerta/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "8.1.0"
appVersion: "8.7.0"
description: A Helm chart for Kubernetes
name: alerta
version: 0.3.0
version: 0.4.0
2 changes: 1 addition & 1 deletion contrib/kubernetes/helm/alerta/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
image: "{{ .Values.image.repository }}:{{ default .Chart.AppVersion .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
{{- if .Values.alertaAdminUsers }}
Expand Down
3 changes: 3 additions & 0 deletions contrib/kubernetes/helm/alerta/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
Expand Down
5 changes: 4 additions & 1 deletion contrib/kubernetes/helm/alerta/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ replicaCount: 1

image:
repository: alerta/alerta-web
tag: 8.1.0
# Override the image tag to deploy by setting this variable.
# If no value is set, the chart's appVersion will be used.
tag: ""
pullPolicy: IfNotPresent

nameOverride: ""
Expand All @@ -21,6 +23,7 @@ ingress:
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
className: ""
path: /
hosts:
- alerta.example.com
Expand Down

0 comments on commit 2e7bb9e

Please sign in to comment.