[AKS] Fix ACStor configuration setting detection - #33938
[AKS] Fix ACStor configuration setting detection#33938Aditya Pujara (a0x1ab) with Copilot wants to merge 2 commits into
Conversation
|
Hi Copilot, |
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
|
aks |
Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Fixes Azure Container Storage (ACStor) configuration detection in az aks create/update by correctly interpreting extension configurationSettings booleans that may be persisted as native JSON booleans or lowercase "true"/"false" strings (instead of only "True"/"False").
Changes:
- Added a shared helper to normalize ACStor boolean config reads across bool and case-insensitive string representations.
- Updated ACStor v1/v2 configuration reads to use the normalized helper (eliminating case-sensitive
"True"comparisons). - Added unit tests covering lowercase boolean strings (v1) and native boolean values (v2).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
src/azure-cli/azure/cli/command_modules/acs/azurecontainerstorage/_helpers.py |
Adds _is_config_setting_enabled and updates ACStor config detection to be robust to bool/lowercase string values. |
src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_helpers.py |
Adds regression tests validating correct parsing of lowercase string booleans and native boolean settings. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Live test results —
|
|
🔔 Routing this PR to @Azure/act-observability-squad. |
Simon Croome (croomes)
left a comment
There was a problem hiding this comment.
Approving from Container Storage team.
Related command
az aks create,az aks updateDescription
ACStor extension
configurationSettingsmay now persist booleans as lowercase JSON/string values (true/false) instead of"True"/"False". Case-sensitive reads causedaz aks update --enable-azure-container-storageto miss active cluster configuration and fall back to legacy defaults.boolvalues and case-insensitive strings.Testing Guide
Targeted unit coverage for ACStor helper behavior:
History Notes
[AKS]
az aks update: Fix Azure Container Storage configuration detection for lowercase and boolean extension settingsThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.