From 3d4646657115744c3fcbde41a5f4c6115c94ebb9 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Sun, 7 Jul 2024 12:01:06 -0700 Subject: [PATCH] Fix ca cert key for service monitor Signed-off-by: Tamal Saha --- charts/inbox-agent/templates/operator/apiregistration.yaml | 1 + .../templates/webhook/monitoring/servicemonitor.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/inbox-agent/templates/operator/apiregistration.yaml b/charts/inbox-agent/templates/operator/apiregistration.yaml index a831c66..a22217a 100644 --- a/charts/inbox-agent/templates/operator/apiregistration.yaml +++ b/charts/inbox-agent/templates/operator/apiregistration.yaml @@ -25,6 +25,7 @@ metadata: {{- include "inbox-agent.labels" . | nindent 4 }} type: kubernetes.io/tls data: + ca.crt: {{ $caCrt }} tls.crt: {{ $serverCrt }} tls.key: {{ $serverKey }} --- diff --git a/charts/inbox-agent/templates/webhook/monitoring/servicemonitor.yaml b/charts/inbox-agent/templates/webhook/monitoring/servicemonitor.yaml index 84d820d..090f53b 100644 --- a/charts/inbox-agent/templates/webhook/monitoring/servicemonitor.yaml +++ b/charts/inbox-agent/templates/webhook/monitoring/servicemonitor.yaml @@ -30,7 +30,7 @@ spec: ca: secret: name: {{ include "inbox-agent.fullname" . }}-webhook-cert - key: tls.crt + key: ca.crt serverName: "{{ include "inbox-agent.fullname" . }}.{{ .Release.Namespace }}.svc" {{- end }} {{- end }}