Skip to content

Commit

Permalink
Fixed buildCredentialserences function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Adarsh-jaiss committed Feb 27, 2024
1 parent 6ee1cd8 commit 92f988a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/validate/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (s Credentials) ValidatePath(ctx context.Context) error {
var missingSecrets []string
secret := &corev1.Secret{}

secretNames := s.buildCredentialserences()
secretNames := s.buildCredentialReferences()

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

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

0 comments on commit 92f988a

Please sign in to comment.