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 6d652dc commit 6835289
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions charts/scalardl-audit/templates/auditor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,28 +161,32 @@ spec:
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:40051
- -addr=localhost:40051
{{- if .Values.auditor.tls.enabled }}
- -tls
{{- if .Values.auditor.tls.caRootCertSecret }}
- -tls-ca-cert=/tls/certs/ca-root-cert.pem
{{- end }}
{{- if .Values.auditor.tls.overrideAuthority }}
- -tls-server-name={{ .Values.auditor.tls.overrideAuthority }}
{{- end }}
{{- end }}
failureThreshold: 60
periodSeconds: 5
livenessProbe:
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:40051
- -addr=localhost:40051
{{- if .Values.auditor.tls.enabled }}
- -tls
{{- if .Values.auditor.tls.caRootCertSecret }}
- -tls-ca-cert=/tls/certs/ca-root-cert.pem
{{- end }}
{{- if .Values.auditor.tls.overrideAuthority }}
- -tls-server-name={{ .Values.auditor.tls.overrideAuthority }}
{{- end }}
{{- end }}
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
Expand Down

0 comments on commit 6835289

Please sign in to comment.