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 }}