From 7e91921ac953fabca6b4c6b9c07567a528bf5fc9 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 7 Jul 2024 11:45:12 -0700 Subject: [PATCH] Fix ca.crt key for service monitors Signed-off-by: Tamal Saha --- charts/kubedb-ui-server/templates/apiregistration.yaml | 1 + charts/kubedb-ui-server/templates/servicemonitor.yaml | 2 +- charts/kubedb-webhook-server/templates/servicemonitor.yaml | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/charts/kubedb-ui-server/templates/apiregistration.yaml b/charts/kubedb-ui-server/templates/apiregistration.yaml index 8a49e29e1..9eafd81da 100644 --- a/charts/kubedb-ui-server/templates/apiregistration.yaml +++ b/charts/kubedb-ui-server/templates/apiregistration.yaml @@ -41,6 +41,7 @@ metadata: {{- include "kubedb-ui-server.labels" . | nindent 4 }} type: kubernetes.io/tls data: + ca.crt: {{ $caCrt }} tls.crt: {{ $serverCrt }} tls.key: {{ $serverKey }} --- diff --git a/charts/kubedb-ui-server/templates/servicemonitor.yaml b/charts/kubedb-ui-server/templates/servicemonitor.yaml index 7e863fe75..f77cc4670 100644 --- a/charts/kubedb-ui-server/templates/servicemonitor.yaml +++ b/charts/kubedb-ui-server/templates/servicemonitor.yaml @@ -25,6 +25,6 @@ spec: ca: secret: name: {{ include "kubedb-ui-server.fullname" . }}-apiserver-cert - key: tls.crt + key: ca.crt serverName: "{{ include "kubedb-ui-server.fullname" . }}.{{ .Release.Namespace }}.svc" {{- end }} diff --git a/charts/kubedb-webhook-server/templates/servicemonitor.yaml b/charts/kubedb-webhook-server/templates/servicemonitor.yaml index cff2b948c..bb0681d2a 100644 --- a/charts/kubedb-webhook-server/templates/servicemonitor.yaml +++ b/charts/kubedb-webhook-server/templates/servicemonitor.yaml @@ -25,6 +25,6 @@ spec: ca: secret: name: {{ include "kubedb-webhook-server.fullname" . }}-apiserver-cert - key: tls.crt + key: ca.crt serverName: "{{ include "kubedb-webhook-server.fullname" . }}.{{ .Release.Namespace }}.svc" {{- end }}