From 714438c46ac7695d77d2171e0897ebd1667629fd Mon Sep 17 00:00:00 2001 From: amnk Date: Fri, 22 Apr 2022 18:09:59 +0000 Subject: [PATCH] Enable Ingress with `ingressClassName` --- charts/helm-microservice/Chart.yaml | 2 +- charts/helm-microservice/templates/ingress.yaml | 3 +++ charts/helm-microservice/values.yaml | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/charts/helm-microservice/Chart.yaml b/charts/helm-microservice/Chart.yaml index 5fa22ef..5626ef6 100644 --- a/charts/helm-microservice/Chart.yaml +++ b/charts/helm-microservice/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v1 appVersion: "1.0" description: A Helm chart for Kubernetes name: helm-microservice -version: 0.1.22 +version: 0.1.23 home: https://github.com/skaeladmin/infra sources: - https://github.com/skaeladmin/infra/charts/helm-microservice diff --git a/charts/helm-microservice/templates/ingress.yaml b/charts/helm-microservice/templates/ingress.yaml index 912e0b1..08052f8 100644 --- a/charts/helm-microservice/templates/ingress.yaml +++ b/charts/helm-microservice/templates/ingress.yaml @@ -24,6 +24,9 @@ metadata: {{- end }} {{- end }} spec: +{{- if .Values.ingress.className }} + ingressClassName: {{ .Values.ingress.className }} +{{- end }} {{ $subDomain := .Values.ingress.subDomain | default "" }} rules: {{ $path := .Values.ingress.path }} diff --git a/charts/helm-microservice/values.yaml b/charts/helm-microservice/values.yaml index 5685e60..7b9f664 100644 --- a/charts/helm-microservice/values.yaml +++ b/charts/helm-microservice/values.yaml @@ -41,6 +41,7 @@ ingress: enabled: false ## This one can be used to insert one templated annotation. Ugly, but I could not find a better way of doing it :( hackAnnotations: false + className: null livenessProbe: enabled: true @@ -259,3 +260,6 @@ serviceMonitor: # targetLabel: nodename # replacement: $1 # action: replace + # + +