Skip to content

Commit

Permalink
Fix ca.crt key for service monitors
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <[email protected]>
  • Loading branch information
tamalsaha committed Jul 7, 2024
1 parent 6d63977 commit 7e91921
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions charts/kubedb-ui-server/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
---
Expand Down
2 changes: 1 addition & 1 deletion charts/kubedb-ui-server/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion charts/kubedb-webhook-server/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 7e91921

Please sign in to comment.