This is an automated email from the ASF dual-hosted git repository.

gongchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/master by this push:
     new ea7fd2b26 fix : ingress tls inoperative (#1760)
ea7fd2b26 is described below

commit ea7fd2b268bc6d6b863428ff61e05b17e8c6d365
Author: PeixyJ <[email protected]>
AuthorDate: Wed Apr 17 16:08:02 2024 +0800

    fix : ingress tls inoperative (#1760)
---
 script/helm/hertzbeat/templates/manager/ingress.yaml | 3 +++
 script/helm/hertzbeat/values.yaml                    | 6 +++---
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/script/helm/hertzbeat/templates/manager/ingress.yaml 
b/script/helm/hertzbeat/templates/manager/ingress.yaml
index dc83b3175..53aa725e2 100644
--- a/script/helm/hertzbeat/templates/manager/ingress.yaml
+++ b/script/helm/hertzbeat/templates/manager/ingress.yaml
@@ -25,6 +25,9 @@ metadata:
   labels:
     {{- include "hertzbeat.labels" . | nindent 4 }}
 spec:
+  {{if .Values.expose.ingress.ingressClassName }}
+  ingressClassName: {{ .Values.expose.ingress.ingressClassName }}
+  {{end}}
   rules:
     - host: {{ .Values.expose.ingress.host }}
       http:
diff --git a/script/helm/hertzbeat/values.yaml 
b/script/helm/hertzbeat/values.yaml
index f778817cb..db3b1435f 100644
--- a/script/helm/hertzbeat/values.yaml
+++ b/script/helm/hertzbeat/values.yaml
@@ -135,9 +135,9 @@ expose:
     sourceRanges: [ ]
   ingress:
     enabled: true
+    ingressClassName: ""
     host: "hertzbeat.domain"
     annotations: {}    
     tls:
-      enabled: false
-      tls:
-        - secretName: your-tls-secret 
+      enabled: true
+      secretName: your-tls-secret


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to