Skip to content

Commit

Permalink
error message should not be capitalized
Browse files Browse the repository at this point in the history
Signed-off-by: yaacov <[email protected]>
  • Loading branch information
yaacov committed Dec 30, 2024
1 parent 4a041b8 commit e689a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (admitter *SecretAdmitter) validateProviderSecret() *admissionv1.AdmissionR
func (admitter *SecretAdmitter) validateHostSecret() *admissionv1.AdmissionResponse {
if hostName, ok := admitter.secret.GetLabels()["createdForResource"]; ok {
if _, ok := admitter.secret.Data["user"]; !ok {
err := errors.New("Missing credentials on Host secret")
err := errors.New("missing credentials on Host secret")
return webhookutils.ToAdmissionResponseError(err)
}
tested, err := admitter.testConnectionToHost(hostName)
Expand Down

0 comments on commit e689a6d

Please sign in to comment.