From b1e375d2ff31f7ab850627e9987e0b41b9a700d1 Mon Sep 17 00:00:00 2001 From: Brandon Clifford Date: Fri, 31 Dec 2021 17:34:43 -0700 Subject: [PATCH] Linting updates and fix emptyDir for no persistence --- charts/wg-easy/Chart.yaml | 3 ++- charts/wg-easy/templates/deployment.yaml | 2 +- charts/wg-easy/templates/ingress.yaml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/charts/wg-easy/Chart.yaml b/charts/wg-easy/Chart.yaml index 64e0f7a6..9acca9fd 100644 --- a/charts/wg-easy/Chart.yaml +++ b/charts/wg-easy/Chart.yaml @@ -2,7 +2,8 @@ apiVersion: v2 name: wg-easy description: A Wireguard Easy Helm chart type: application +icon: https://www.wireguard.com/img/wireguard.svg # This is the chart version. version: 0.1.0 # This is the version number of the application being deployed. -appVersion: 4 +appVersion: "4" diff --git a/charts/wg-easy/templates/deployment.yaml b/charts/wg-easy/templates/deployment.yaml index c2d04a7b..e61a2da7 100644 --- a/charts/wg-easy/templates/deployment.yaml +++ b/charts/wg-easy/templates/deployment.yaml @@ -93,7 +93,7 @@ spec: claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ include "wg-easy.fullname" . }}{{- end }} {{- end }} {{- if not .Values.persistence.enabled }} - emptyDir: {} + emptyDir: {} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/charts/wg-easy/templates/ingress.yaml b/charts/wg-easy/templates/ingress.yaml index 31d62647..bc93f611 100644 --- a/charts/wg-easy/templates/ingress.yaml +++ b/charts/wg-easy/templates/ingress.yaml @@ -16,6 +16,9 @@ metadata: {{- toYaml . | nindent 4 }} {{- end }} spec: + {{- if and .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} + {{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }}