Skip to content

Commit c2f2881

Browse files
Merge pull request #1506 from Adarsh-jaiss/build-lint
Fixed buildCredentialserences function name
2 parents 6ee1cd8 + 92f988a commit c2f2881

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/validate/secrets.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (s Credentials) ValidatePath(ctx context.Context) error {
3636
var missingSecrets []string
3737
secret := &corev1.Secret{}
3838

39-
secretNames := s.buildCredentialserences()
39+
secretNames := s.buildCredentialReferences()
4040

4141
for refSecret, secretType := range secretNames {
4242
if err := s.Client.Get(ctx, types.NamespacedName{Name: refSecret, Namespace: s.Build.Namespace}, secret); err != nil && !apierrors.IsNotFound(err) {
@@ -58,7 +58,7 @@ func (s Credentials) ValidatePath(ctx context.Context) error {
5858
return nil
5959
}
6060

61-
func (s Credentials) buildCredentialserences() map[string]build.BuildReason {
61+
func (s Credentials) buildCredentialReferences() map[string]build.BuildReason {
6262
// Validate if the referenced secrets exist in the namespace
6363
secretRefMap := map[string]build.BuildReason{}
6464
if s.Build.Spec.Output.PushSecret != nil {

0 commit comments

Comments
 (0)