Fleet 20260602Preview CLI Updates#10047
Open
JunyuQian wants to merge 47 commits into
Open
Conversation
Co-authored-by: Copilot <copilot@github.com>
Adding scheduled start tests
…pdates-keep-rollout-update-strategy-only
Set extension version to 1.11.0 and address lint errors
Add securityPatch as a channel option
Update to use 0602preview API version
re-generate all test recordings
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Hi @JunyuQian, |
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the fleet Azure CLI extension to the 2026-06-02-preview management API by vendoring a newly generated SDK, bumping the extension version to 1.11.0, and extending CLI functionality and tests around update orchestration (selectors, gates) and managed namespaces.
Changes:
- Bump fleet extension version to 1.11.0 and add release notes for the 2026-06-02-preview API.
- Replace the vendored Fleet management SDK from
v2026_03_02_previewtov2026_06_02_preview, including updated client/config and new/updated models and operations (sync + async). - Extend CLI behaviors and scenarios/tests for staged updates (memberSelector, maxAllowedFailures, ScheduledStart gates), gate listing filters, SecurityPatch auto-upgrade channel validation, and managed namespace updates (labels/annotations/quotas/policies/rollout strategy).
Reviewed changes
Copilot reviewed 47 out of 57 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/fleet/setup.py | Bumps extension package version to 1.11.0. |
| src/fleet/HISTORY.rst | Adds 1.11.0 changelog entry for 2026-06-02-preview API SDK. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/py.typed | Adds PEP 561 typing marker for the vendored SDK package. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_update_runs_operations.py | Updates generated operations (api-version, typing, serialization import path). |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_patch.py | Adds SDK patch hook file for generated operations package. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_operations.py | Updates generated provider operations list call to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_gates_operations.py | Updates generated gates operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_fleets_operations.py | Updates generated fleets operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_fleet_update_strategies_operations.py | Updates generated update-strategies operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_fleet_members_operations.py | Updates generated fleet-members operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_fleet_managed_namespaces_operations.py | Updates managed namespaces operations and adjusts LRO final-state-via behavior. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_cluster_mesh_profiles_operations.py | Updates cluster mesh profiles operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_auto_upgrade_profiles_operations.py | Updates auto-upgrade profiles operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/_auto_upgrade_profile_operations_operations.py | Updates auto-upgrade profile operations calls to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/operations/init.py | Adds generated operations package exports and patch hook invocation. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/models/_patch.py | Updates patch module typing to Python 3.9+ style. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/models/_container_service_fleet_mgmt_client_enums.py | Adds/updates enums (e.g., DayOfWeek, ScheduledStart gate, rollout strategy types). |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/models/init.py | Updates exported models/enums list for new API surface. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_update_runs_operations.py | Updates async update-runs operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_patch.py | Updates async operations patch module typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_operations.py | Updates async provider operations list call typing/serialization import path. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_gates_operations.py | Updates async gates operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_fleets_operations.py | Updates async fleets operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_fleet_update_strategies_operations.py | Updates async update-strategies operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_fleet_members_operations.py | Updates async fleet-members operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_fleet_managed_namespaces_operations.py | Updates async managed namespaces operations and adjusts LRO final-state-via behavior. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_cluster_mesh_profiles_operations.py | Updates async cluster mesh profiles operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_auto_upgrade_profiles_operations.py | Updates async auto-upgrade profiles operations to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/_auto_upgrade_profile_operations_operations.py | Updates async auto-upgrade profile operations calls to new api-version + typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/operations/init.py | Adds generated async operations package exports and patch hook invocation. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/_patch.py | Updates async client patch module typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/_container_service_fleet_mgmt_client.py | Updates async client to support cloud settings/ARM endpoints and new api-version default. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/_configuration.py | Updates async configuration to include cloud_setting and new api-version default. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/aio/init.py | Adds async package exports and patch hook invocation. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_version.py | Adds generated SDK version constant. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_utils/serialization.py | Moves/updates serialization implementation under _utils and minor lint tweak. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_utils/init.py | Adds _utils package init for generated SDK utilities. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_patch.py | Updates sync client patch module typing. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_container_service_fleet_mgmt_client.py | Updates sync client to support cloud settings/ARM endpoints and new api-version default. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/_configuration.py | Updates sync configuration to include cloud_setting and new api-version default. |
| src/fleet/azext_fleet/vendored_sdks/v2026_06_02_preview/init.py | Adds sync package exports, version, and patch hook invocation. |
| src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/operations/_patch.py | Removes old generated patch file as part of SDK version replacement. |
| src/fleet/azext_fleet/vendored_sdks/v2026_03_02_preview/_serialization.py | Removes old serialization module (replaced by v2026_06_02_preview/_utils/serialization.py). |
| src/fleet/azext_fleet/vendored_sdks/init.py | Switches active vendored SDK aliasing from v2026_03_02_preview to v2026_06_02_preview. |
| src/fleet/azext_fleet/tests/latest/test_stages_json.py | Expands unit tests for stages JSON parsing (maxAllowedFailures, memberSelector, ScheduledStart gates). |
| src/fleet/azext_fleet/tests/latest/test_fleet_hubless_scenario.py | Updates hubless scenario to validate new strategy fields and ScheduledStart gate filtering/props. |
| src/fleet/azext_fleet/tests/latest/test_fleet_hubful_scenario.py | Updates hubful scenario assertions and adds namespace update coverage. |
| src/fleet/azext_fleet/tests/latest/data/stages.json | Updates sample stages JSON to include memberSelector, maxAllowedFailures, and ScheduledStart gate config. |
| src/fleet/azext_fleet/custom.py | Implements new gates/stages parsing, gate filters, SecurityPatch validation, and namespace update enhancements. |
| src/fleet/azext_fleet/constants.py | Adds gate type filter list and shared polling interval constant. |
| src/fleet/azext_fleet/azext_metadata.json | Bumps extension metadata version to 1.11.0. |
| src/fleet/azext_fleet/_params.py | Adds/extends CLI args (gate-type filter, SecurityPatch channel, namespace update parameters, rollout strategy arg). |
| src/fleet/azext_fleet/_help.py | Updates help text/examples for new stages schema (selectors, failures, ScheduledStart gates) and new commands/options. |
4 tasks
Collaborator
|
Fleet |
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.
This checklist is used to make sure that common guidelines for a pull request are followed.
Related command
General Guidelines
azdev style <YOUR_EXT>locally? (pip install azdevrequired)python scripts/ci/test_index.py -qlocally? (azdevrequired; see.azure-pipelines/templates/azdev_setup.ymlfor the install command untilazdev==0.2.11b1is on PyPI)For new extensions:
About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update
src/index.jsonautomatically.You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify
src/index.json.