Skip to content

Enable regclient debug logging in gpuop-cfg validation#2190

Open
karthikvetrivel wants to merge 1 commit intoNVIDIA:mainfrom
karthikvetrivel:fix/gpuop-cfg-regclient-debug-logging
Open

Enable regclient debug logging in gpuop-cfg validation#2190
karthikvetrivel wants to merge 1 commit intoNVIDIA:mainfrom
karthikvetrivel:fix/gpuop-cfg-regclient-debug-logging

Conversation

@karthikvetrivel
Copy link
Member

Description

Wire the existing --debug flag through to regclient to emit registry auth/token negotiation logs during image validation. Helps diagnose nvcr.io 401 failures in CI.

Checklist

  • No secrets, sensitive information, or unrelated changes
  • Lint checks passing (make lint)
  • Generated assets in-sync (make validate-generated-assets)
  • Go mod artifacts in-sync (make validate-modules)
  • Test cases are added for new code paths

Testing

Ran ./gpuop-cfg --debug validate csv locally and confirmed regclient auth debug logs are emitted (token scopes, challenge parsing). Without --debug, no extra output.

}

err = validateImages(ctx, &cp.Spec)
err = validateImages(ctx, &cp.Spec, m.logger)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about we initialise registryClient before this method and pass that in as an input parameter instead of logger?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Karthik Vetrivel <kvetrivel@nvidia.com>
@karthikvetrivel karthikvetrivel force-pushed the fix/gpuop-cfg-regclient-debug-logging branch from fad0123 to 60cdd58 Compare March 6, 2026 17:13
)

// NewClient creates a regclient client with the provided options.
func NewClient(opts ...regclient.Opt) *regclient.RegClient {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this method at all?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could just call regclient.New(opts...) directly at the call site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants