Skip to content

Commit

Permalink
Removes a newline in the securityContext helper
Browse files Browse the repository at this point in the history
The accidentally added newline lead to a always false if condition.
"true" != "\r\ntrue" and therefor securityContext was never added.
  • Loading branch information
mmack committed Jul 12, 2023
1 parent 498b8a0 commit 35feb87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cockroachdb/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ Validate that if user enabled tls, then either self-signed certificates or certi
{{- end -}}

{{- define "cockroachdb.securityContext.versionValidation" }}
{{/* Allow using `securityContext` for custom images. */}}
{{- /* Allow using `securityContext` for custom images. */}}
{{- if ne "cockroachdb/cockroach" .Values.image.repository -}}
{{ print true }}
{{- else -}}
Expand Down

0 comments on commit 35feb87

Please sign in to comment.