Skip to content

Commit

Permalink
Merge pull request #560 from stuggi/notfound_msg
Browse files Browse the repository at this point in the history
Fix ValidateCertSecret error message
  • Loading branch information
stuggi authored Sep 5, 2024
2 parents d5a6fc3 + 47283d8 commit 174296c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/common/tls/tls.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ func ValidateCACertSecret(
} else if (ctrlResult != ctrl.Result{}) {
return "", k8s_errors.NewNotFound(
appsv1.Resource("Secret"),
fmt.Sprintf("%s not found in namespace %s", caSecret.Name, caSecret.Namespace),
fmt.Sprintf("%s in namespace %s", caSecret.Name, caSecret.Namespace),
)
}

Expand All @@ -286,7 +286,7 @@ func (s *Service) ValidateCertSecret(ctx context.Context, h *helper.Helper, name
} else if (ctrlResult != ctrl.Result{}) {
return "", k8s_errors.NewNotFound(
corev1.Resource(corev1.ResourceSecrets.String()),
fmt.Sprintf("%s not found in namespace %s", s.SecretName, namespace),
fmt.Sprintf("%s in namespace %s", s.SecretName, namespace),
)
}

Expand Down

0 comments on commit 174296c

Please sign in to comment.