Skip to content

Commit

Permalink
Add if statement for overrideAuthority configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
kota2and3kan committed Mar 22, 2024
1 parent 2c457b6 commit 8d0ec98
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions charts/scalardl/templates/ledger/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,28 +143,32 @@ spec:
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:50051
- -addr=localhost:50051
{{- if .Values.ledger.tls.enabled }}
- -tls
{{- if .Values.ledger.tls.caRootCertSecret }}
- -tls-ca-cert=/tls/certs/ca-root-cert.pem
{{- end }}
{{- if .Values.ledger.tls.overrideAuthority }}
- -tls-server-name={{ .Values.ledger.tls.overrideAuthority }}
{{- end }}
{{- end }}
failureThreshold: 60
periodSeconds: 5
livenessProbe:
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:50051
- -addr=localhost:50051
{{- if .Values.ledger.tls.enabled }}
- -tls
{{- if .Values.ledger.tls.caRootCertSecret }}
- -tls-ca-cert=/tls/certs/ca-root-cert.pem
{{- end }}
{{- if .Values.ledger.tls.overrideAuthority }}
- -tls-server-name={{ .Values.ledger.tls.overrideAuthority }}
{{- end }}
{{- end }}
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
Expand Down

0 comments on commit 8d0ec98

Please sign in to comment.