Skip to content

(aks-preview): Fix omitted FlexNodes node taints - #10351

Merged
Ethan Yang (necusjz) merged 3 commits into
Azure:mainfrom
karenychen:codex/flexnodes-node-taints-omission
Sep 18, 2026
Merged

Ethan Yang (necusjz) merged 3 commits into
Azure:mainfrom
karenychen:codex/flexnodes-node-taints-omission

Conversation

@karenychen

@karenychen Karen Chen (karenychen) commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Validation — ️✔️ All clear

Breaking Changes
️✔️ None

Related command

az aks nodepool add --vm-set-type FlexNodes

Summary

  • preserve an omitted --node-taints value for FlexNodes node pool creation so the SDK omits nodeTaints
  • preserve non-empty taints and reject an explicitly empty --node-taints value for FlexNodes
  • keep existing behavior unchanged for other node pool types
  • release the fix in aks-preview version 22.0.0b8 through matching setup.py and HISTORY.rst updates

Testing

  • python -m pytest -q src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py — 137 passed
  • azdev style aks-preview — Pylint passed; Flake8 passed
  • python scripts/ci/test_index.py -q — 9 tests passed (2 skipped)
  • python setup.py --version22.0.0b8

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally?
  • Have you run python scripts/ci/test_index.py -q locally?
  • My extension version conforms to the extension version schema; this fix is released as 22.0.0b8.

Copilot AI lite review requested due to automatic review settings September 16, 2026 18:47
@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi Karen Chen (@karenychen),
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in pyproject.toml (or setup.py, if the extension has not migrated yet) as well.

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.

🟢 Approval recommended

No blocking issues were identified.

Pull request overview

Fixes FlexNodes node-taint handling during node pool creation.

Changes:

  • Omits unspecified taints.
  • Rejects explicitly empty taint values.
  • Adds regression tests and a Pending changelog entry.
File summaries
File Description
src/aks-preview/HISTORY.rst Documents the fix.
src/aks-preview/azext_aks_preview/tests/latest/test_agentpool_decorator.py Adds FlexNodes taint behavior tests.
src/aks-preview/azext_aks_preview/agentpool_decorator.py Implements taint handling.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@karenychen Karen Chen (karenychen) changed the title {AKS} Fix omitted FlexNodes node taints (aks-preview): Fix omitted FlexNodes node taints Sep 16, 2026
@karenychen
Karen Chen (karenychen) deleted the codex/flexnodes-node-taints-omission branch September 16, 2026 22:29
@yonzhan

Copy link
Copy Markdown
Collaborator

aks-preview

@karenychen
Karen Chen (karenychen) restored the codex/flexnodes-node-taints-omission branch September 17, 2026 17:41
@karenychen

Copy link
Copy Markdown
Contributor Author

local test:
image

@necusjz
Ethan Yang (necusjz) merged commit 4b18b45 into Azure:main Sep 18, 2026
24 checks passed
@azclibot

Copy link
Copy Markdown
Collaborator

[Release] Update index.json for extension [ aks-preview-22.0.0b8 ] : https://dev.azure.com/msazure/One/_build/results?buildId=181672988&view=results

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants