Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2466 from StrongMonkey/remove-logs
Browse files Browse the repository at this point in the history
Remove spamming logs
  • Loading branch information
StrongMonkey authored Jan 31, 2024
2 parents 523ede0 + eab8d28 commit 9761944
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/pullsecret/pullsecrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/google/go-containerregistry/pkg/authn"
"github.com/google/go-containerregistry/pkg/authn/kubernetes"
"github.com/google/go-containerregistry/pkg/name"
"github.com/sirupsen/logrus"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"sigs.k8s.io/controller-runtime/pkg/client"
Expand Down Expand Up @@ -73,12 +72,6 @@ func Keychain(ctx context.Context, c client.Reader, namespace string) (authn.Key
keychainSecrets = append(keychainSecrets, secrets...)
}

var pullSecretNameAndNamespace []string
for _, secret := range keychainSecrets {
pullSecretNameAndNamespace = append(pullSecretNameAndNamespace, fmt.Sprintf("%s/%s", secret.Namespace, secret.Name))
}

logrus.Infof("Using pull secrets: %v for builder namespace %s", pullSecretNameAndNamespace, namespace)
return kubernetes.NewFromPullSecrets(ctx, keychainSecrets)
}

Expand Down

0 comments on commit 9761944

Please sign in to comment.