Skip to content

Improve runDiagnostics debug output when no resource info available#210

Merged
stevekuznetsov merged 1 commit intomainfrom
abbyduke/kustoDeepLinkNoResourceInfo
Mar 2, 2026
Merged

Improve runDiagnostics debug output when no resource info available#210
stevekuznetsov merged 1 commit intomainfrom
abbyduke/kustoDeepLinkNoResourceInfo

Conversation

@abiduke612
Copy link
Collaborator

Added debugging info and namespace kusto query when no resource info available

Copilot AI review requested due to automatic review settings March 2, 2026 21:52
@abiduke612 abiduke612 force-pushed the abbyduke/kustoDeepLinkNoResourceInfo branch from 203ab92 to d882062 Compare March 2, 2026 21:52
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the runDiagnostics debug output in tools/helm/options.go by adding diagnostic logging and a Kusto namespace query when no resource info is available in a Helm release (i.e., when release.Info == nil or release.Info.Resources is empty). Previously, the function would silently return nil in that case. It also moves the deploymentStart/deploymentEnd variable declarations to the top of the function so they are available before the early-exit path.

Changes:

  • Moves deploymentStart and deploymentEnd variable declarations to the top of runDiagnostics, before the early-exit guard.
  • Adds a logger.Info call to log when no resource info is available (with infoNil and resourceCount key-value pairs).
  • Adds a Kusto namespace-level deep link query (getNamespaceQuery) in the early-exit path to aid troubleshooting when no resource info is present.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@abiduke612 abiduke612 force-pushed the abbyduke/kustoDeepLinkNoResourceInfo branch from d882062 to 15a3788 Compare March 2, 2026 22:10
@stevekuznetsov stevekuznetsov merged commit 3298871 into main Mar 2, 2026
2 checks passed
@abiduke612 abiduke612 deleted the abbyduke/kustoDeepLinkNoResourceInfo branch March 2, 2026 23:40
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