Skip to content

Commit

Permalink
Add Ingress className to pritunl helm chart (#297)
Browse files Browse the repository at this point in the history
* Add Ingress className

* Bump pritunl helm chart version
  • Loading branch information
orlovmyk authored Apr 8, 2024
1 parent 0908f3f commit b27e39a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dysnix/pritunl/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "1.29"
description: A Helm chart for Kubernetes
name: pritunl
version: 0.2.3
version: 0.2.4
home: https://pritunl.com/
sources:
- https://github.com/dysnix/charts
Expand Down
3 changes: 3 additions & 0 deletions dysnix/pritunl/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
{{- if .Values.ingress.hostname }}
- host: {{ .Values.ingress.hostname }}
Expand Down
3 changes: 3 additions & 0 deletions dysnix/pritunl/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ ingress:
## @param ingress.apiVersion Force Ingress API version (automatically detected if not set)
##
apiVersion:
## @param ingress.className Ingress class name
##
className: ""
## @param ingress.hostname Default host for the ingress record
##
hostname: pritunl.local
Expand Down

0 comments on commit b27e39a

Please sign in to comment.