Skip to content

Commit

Permalink
Remove templated tls.enabled in probe
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanandres committed Dec 4, 2024
1 parent 01408d7 commit 63890e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
16 changes: 0 additions & 16 deletions charts/kargo/templates/api/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,9 @@ spec:
{{- with .Values.api.probes.livenessProbe }}
livenessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:8080
{{- if .Values.api.tls.enabled }}
- -tls
- -tls-no-verify
{{- end }}
{{- with .Values.api.probes.readinessProbe }}
readinessProbe: {{- toYaml . | nindent 12 }}
{{- end }}
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:8080
{{- if .Values.api.tls.enabled }}
- -tls
- -tls-no-verify
{{- end }}
{{- end }}
{{- if or .Values.kubeconfigSecrets.kargo (and .Values.api.oidc.enabled .Values.api.oidc.dex.enabled) .Values.api.tls.enabled .Values.api.cabundle.configMapName .Values.api.cabundle.secretName }}
volumeMounts:
Expand Down
15 changes: 14 additions & 1 deletion charts/kargo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,22 @@ api:
enabled: true
livenessProbe:
initialDelaySeconds: 10

exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:8080
# Manually disable if TLS is not used
- -tls
- -tls-no-verify
readinessProbe:
initialDelaySeconds: 5
exec:
command:
- /usr/local/bin/grpc_health_probe
- -addr=:8080
# Manually disable if TLS is not used
- -tls
- -tls-no-verify

tls:
## @param api.tls.enabled Whether to enable TLS directly on the API server. This is helpful if you do not intend to use an ingress controller or if you require TLS end-to-end. All other settings in this section will be ignored when this is set to `false`.
Expand Down

0 comments on commit 63890e6

Please sign in to comment.