Repository navigation
fix: recognize zone-aligned AKS node pools - #866
Draft
Behzad Motaghi (Motaghi) wants to merge 1 commit into
Draft
Behzad Motaghi (Motaghi) wants to merge 1 commit into
Behzad Motaghi (Motaghi) wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview/Summary
Recommendation 4f63619f-5001-439c-bacb-8de891287727 reports every node pool pinned to a single zone, so a zone-aligned cluster (for example three system and three user pools, each pinned to a different zone) gets six findings even though its pools cover three zones between them. This change collects the distinct zones of all pools of the same mode in each cluster before deciding. A pool is still reported when it has no zones, or when every pool of its mode sits in the same single zone.
The grouping is by mode only, so two user pools that run different workloads in different single zones are no longer reported. I went with mode because the issue describes aligned system and user pools. If you'd rather have a stricter check, grouping by VM size as well is a one-line change.
The KQL comment check and YAML validation pass locally. I haven't run this in Azure Resource Graph yet, so the screenshot is still missing and the PR stays in draft until it's added. If you or the issue reporter can run it against a zone-aligned cluster, that would settle it.
Related Issues/Work Items
Fixes #698
Breaking Changes
As part of this pull request I have
mainbranchI used gpt-6.1-sol via Codex, run from T3 Code, to write the patch, and Claude Opus 5.5 reviewed the change independently. I've read and verified the diff myself.