From 3726694b337aae1be3406bdf70fa6f1fe6198b9f Mon Sep 17 00:00:00 2001 From: cin-logan <155067188+cin-logan@users.noreply.github.com> Date: Thu, 18 Jul 2024 15:23:38 +0700 Subject: [PATCH] feat: add ingressClass (#109) * feat: add ingress class name Signed-off-by: cin-logan * feat: added ingressClassName into value file Signed-off-by: cin-logan * feat: added ingressClassName into value file Signed-off-by: cin-logan --------- Signed-off-by: cin-logan --- charts/milvus/Chart.yaml | 2 +- charts/milvus/templates/attu-ingress.yaml | 3 +++ charts/milvus/templates/ingress.yaml | 3 +++ charts/milvus/values.yaml | 2 ++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/charts/milvus/Chart.yaml b/charts/milvus/Chart.yaml index 8521aed..dcfd802 100644 --- a/charts/milvus/Chart.yaml +++ b/charts/milvus/Chart.yaml @@ -3,7 +3,7 @@ name: milvus appVersion: "2.4.6" kubeVersion: "^1.10.0-0" description: Milvus is an open-source vector database built to power AI applications and vector similarity search. -version: 4.2.0 +version: 4.2.1 keywords: - milvus - elastic diff --git a/charts/milvus/templates/attu-ingress.yaml b/charts/milvus/templates/attu-ingress.yaml index a331aaa..09d3e95 100644 --- a/charts/milvus/templates/attu-ingress.yaml +++ b/charts/milvus/templates/attu-ingress.yaml @@ -18,6 +18,9 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: +{{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} +{{- end }} {{- if .Values.attu.ingress.tls }} tls: {{- range .Values.attu.ingress.tls }} diff --git a/charts/milvus/templates/ingress.yaml b/charts/milvus/templates/ingress.yaml index ca83225..e1ab39d 100644 --- a/charts/milvus/templates/ingress.yaml +++ b/charts/milvus/templates/ingress.yaml @@ -18,6 +18,9 @@ metadata: {{ toYaml . | indent 4 }} {{- end }} spec: +{{- if .Values.ingress.ingressClassName }} + ingressClassName: {{ .Values.ingress.ingressClassName }} +{{- end }} {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} diff --git a/charts/milvus/values.yaml b/charts/milvus/values.yaml index f653979..caf4bbf 100644 --- a/charts/milvus/values.yaml +++ b/charts/milvus/values.yaml @@ -100,6 +100,7 @@ service: ingress: enabled: false + ingressClassName: "" annotations: # Annotation example: set nginx ingress type # kubernetes.io/ingress.class: nginx @@ -482,6 +483,7 @@ attu: podLabels: {} ingress: enabled: false + ingressClassName: "" annotations: {} # Annotation example: set nginx ingress type # kubernetes.io/ingress.class: nginx