Skip to content

Fleet 20260602Preview CLI Updates#10047

Open
JunyuQian wants to merge 47 commits into
Azure:mainfrom
JunyuQian:fleet-0602preview-cli-updates
Open

Fleet 20260602Preview CLI Updates#10047
JunyuQian wants to merge 47 commits into
Azure:mainfrom
JunyuQian:fleet-0602preview-cli-updates

Conversation

@JunyuQian

Copy link
Copy Markdown
Member

This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (azdev required; see .azure-pipelines/templates/azdev_setup.yml for the install command until azdev==0.2.11b1 is on PyPI)
  • My extension version conforms to the Extension version schema

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.json automatically.
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.

Copilot AI review requested due to automatic review settings June 28, 2026 23:24
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd

Copy link
Copy Markdown

Hi @JunyuQian,
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 setup.py 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.

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_preview to v2026_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.

Comment thread src/fleet/azext_fleet/custom.py
Comment thread src/fleet/azext_fleet/custom.py
@yonzhan

yonzhan commented Jun 28, 2026

Copy link
Copy Markdown
Collaborator

Fleet

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants