Skip to content

Commit

Permalink
Merge pull request #10180 from ryjogo/main
Browse files Browse the repository at this point in the history
🌱 Better verbose logging on override path
  • Loading branch information
k8s-ci-robot committed Feb 27, 2024
2 parents 293026a + b036df8 commit 02b8789
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/clusterctl/client/repository/overrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/pkg/errors"

"sigs.k8s.io/cluster-api/cmd/clusterctl/client/config"
logf "sigs.k8s.io/cluster-api/cmd/clusterctl/log"
)

const (
Expand Down Expand Up @@ -107,7 +108,11 @@ func (o *overrides) Path() (string, error) {
// getLocalOverride return local override file from the config folder, if it exists.
// This is required for development purposes, but it can be used also in production as a workaround for problems on the official repositories.
func getLocalOverride(info *newOverrideInput) ([]byte, error) {
log := logf.Log

overridePath, err := newOverride(info).Path()
log.V(5).Info("Potential override file", "SearchFile", overridePath, "Provider", info.provider.ManifestLabel(), "Version", info.version)

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 02b8789

Please sign in to comment.