From 1ad304078c0126beea4b1469a9893dc4388ee9b4 Mon Sep 17 00:00:00 2001 From: Vijay Kumar Date: Tue, 4 Oct 2022 11:34:21 +0530 Subject: [PATCH] fix: some changes in tls ingress config --- ml-testing-toolkit/chart-backend/templates/ingress.yaml | 2 +- ml-testing-toolkit/chart-backend/values.yaml | 5 ++++- ml-testing-toolkit/chart-frontend/templates/ingress.yaml | 2 +- ml-testing-toolkit/chart-frontend/values.yaml | 5 ++++- ml-testing-toolkit/values.yaml | 5 +++++ 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/ml-testing-toolkit/chart-backend/templates/ingress.yaml b/ml-testing-toolkit/chart-backend/templates/ingress.yaml index 22243cf77..e0c0c6485 100644 --- a/ml-testing-toolkit/chart-backend/templates/ingress.yaml +++ b/ml-testing-toolkit/chart-backend/templates/ingress.yaml @@ -29,6 +29,6 @@ spec: {{- end -}} {{- if .Values.ingress.tls }} tls: - {{ toYaml .Values.ingress.tls | indent 4 }} + {{ toYaml .Values.ingress.tls | nindent 4 }} {{- end -}} {{- end -}} diff --git a/ml-testing-toolkit/chart-backend/values.yaml b/ml-testing-toolkit/chart-backend/values.yaml index 78f1b3af4..e14bb0d17 100644 --- a/ml-testing-toolkit/chart-backend/values.yaml +++ b/ml-testing-toolkit/chart-backend/values.yaml @@ -322,7 +322,10 @@ ingress: # kubernetes.io/ingress.class: nginx ## https://kubernetes.github.io/ingress-nginx/user-guide/tls/#automated-certificate-management-with-kube-lego # kubernetes.io/tls-acme: "true" - tls: [] + tls: + - hosts: + - https-example.foo.com + secretName: testsecret-tls # Secrets must be manually created in the namespace. # - secretName: chart-example-tls # hosts: diff --git a/ml-testing-toolkit/chart-frontend/templates/ingress.yaml b/ml-testing-toolkit/chart-frontend/templates/ingress.yaml index 1a6e1ae2e..c56af1d76 100644 --- a/ml-testing-toolkit/chart-frontend/templates/ingress.yaml +++ b/ml-testing-toolkit/chart-frontend/templates/ingress.yaml @@ -29,6 +29,6 @@ spec: {{- end -}} {{- if .Values.ingress.tls }} tls: - {{ toYaml .Values.ingress.tls | indent 4 }} + {{ toYaml .Values.ingress.tls | nindent 4 }} {{- end -}} {{- end -}} diff --git a/ml-testing-toolkit/chart-frontend/values.yaml b/ml-testing-toolkit/chart-frontend/values.yaml index af889fdaf..bce2bd42a 100644 --- a/ml-testing-toolkit/chart-frontend/values.yaml +++ b/ml-testing-toolkit/chart-frontend/values.yaml @@ -67,7 +67,10 @@ ingress: # kubernetes.io/ingress.class: nginx ## https://kubernetes.github.io/ingress-nginx/user-guide/tls/#automated-certificate-management-with-kube-lego # kubernetes.io/tls-acme: "true" - tls: [] + tls: + - hosts: + - https-example.foo.com + secretName: testsecret-tls # Secrets must be manually created in the namespace. # - secretName: chart-example-tls # hosts: diff --git a/ml-testing-toolkit/values.yaml b/ml-testing-toolkit/values.yaml index 50574e8d8..af9455f46 100644 --- a/ml-testing-toolkit/values.yaml +++ b/ml-testing-toolkit/values.yaml @@ -3,6 +3,11 @@ global: {} ml-testing-toolkit-backend: + ingress: + tls: + - secretName: chart-example-tls + hosts: + - chart-example.local enabled: true # ingress: # enabled: true