Skip to content

Commit

Permalink
Fix ca cert key for service monitor
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 1f7357c commit 4168e76
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions charts/stash-community/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ metadata:
{{- include "stash-community.labels" . | nindent 4 }}
type: Opaque
data:
ca.crt: {{ $caCrt }}
tls.crt: {{ $serverCrt }}
tls.key: {{ $serverKey }}
---
Expand Down
2 changes: 1 addition & 1 deletion charts/stash-community/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
ca:
secret:
name: {{ include "stash-community.fullname" . }}-apiserver-cert
key: tls.crt
key: ca.crt
serverName: "{{ include "stash-community.fullname" . }}.{{ .Release.Namespace }}.svc"
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/stash-enterprise/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ metadata:
{{- include "stash-enterprise.labels" . | nindent 4 }}
type: Opaque
data:
ca.crt: {{ $caCrt }}
tls.crt: {{ $serverCrt }}
tls.key: {{ $serverKey }}
---
Expand Down
2 changes: 1 addition & 1 deletion charts/stash-enterprise/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
ca:
secret:
name: {{ include "stash-enterprise.fullname" . }}-apiserver-cert
key: tls.crt
key: ca.crt
serverName: "{{ include "stash-enterprise.fullname" . }}.{{ .Release.Namespace }}.svc"
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/stash-ui-server/templates/apiregistration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ metadata:
{{- include "stash-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/stash-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 "stash-ui-server.fullname" . }}-apiserver-cert
key: tls.crt
key: ca.crt
serverName: "{{ include "stash-ui-server.fullname" . }}.{{ .Release.Namespace }}.svc"
{{- end }}

0 comments on commit 4168e76

Please sign in to comment.