Skip to content

aks-desktop: Clean up knip findings#722

Open
skoeva wants to merge 3 commits into
Azure:mainfrom
skoeva:knip
Open

aks-desktop: Clean up knip findings#722
skoeva wants to merge 3 commits into
Azure:mainfrom
skoeva:knip

Conversation

@skoeva

@skoeva skoeva commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

These changes resolve all outstanding knip findings by tuning the knip config for the current plugin layout, unexporting internal-only symbols, and removing dead helpers left behind when the ai-assistant plugin moved upstream.

Testing

  • npm run knip reports zero issues
  • No TS errors in any of the touched files

@skoeva skoeva self-assigned this Jun 9, 2026
@skoeva skoeva added the quality label Jun 9, 2026
skoeva added 3 commits June 9, 2026 11:48
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
@skoeva
skoeva marked this pull request as ready for review June 9, 2026 17:00
Copilot AI review requested due to automatic review settings June 9, 2026 17:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 cleans up unused exports/helpers and updates the repository’s knip configuration to reflect the current monorepo/plugin structure, with the goal of eliminating outstanding Knip findings.

Changes:

  • Removed unused Kubernetes/CLI helper exports and narrowed cli-runner to the single currently-used runCommandWithOutput API.
  • Unexported (or removed) internal-only constants/helpers across several components to eliminate unused-export findings.
  • Updated knip.json workspace entries/ignores to match the current plugin layout and stop scanning the ai-assistant workspace.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
plugins/aks-desktop/src/utils/kubernetes/cli-runner.ts Removes unused K8s/az helper exports; keeps only the CLI runner API used by Prometheus utilities/tests.
plugins/aks-desktop/src/components/Metrics/hooks/useCardMetrics.ts Removes an unused cache-clearing helper export.
plugins/aks-desktop/src/components/GitHubPipeline/hooks/usePipelineAnnotationSync.ts Makes a tenant annotation constant internal-only (no longer exported).
plugins/aks-desktop/src/components/GitHubPipeline/constants.ts Removes an unused exported set of Copilot bot usernames.
plugins/aks-desktop/src/components/DeployWizard/components/types.ts Removes an unused helper (bumpWithUnit).
plugins/aks-desktop/src/components/DeployTab/hooks/useClusterDeployStatus.ts Makes deploy/pipeline annotation constants internal-only (no longer exported).
plugins/aks-desktop/src/components/CreateAKSProject/validators.ts Unexports internal validation helpers used only within the module.
plugins/aks-desktop/src/components/CreateAKSProject/types.ts Removes an unused exported role descriptions map.
knip.json Retunes Knip workspace entrypoints/ignores/dependency ignores for the current layout.

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

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants