Rosa/preview cli#9930
Closed
atharvau wants to merge 12 commits into
Closed
Conversation
The `az workload-orchestration cluster init` command depends on three az CLI extensions at runtime (connectedk8s, k8s-extension, customlocation). If any are missing, sub-command invocations fail with opaque errors. This change adds a Step 0 in `target_prepare()` that ensures all three extensions are installed before preflight, mirroring the `azext_vme.utils.check_and_add_cli_extension` pattern. - common/utils.py: add REQUIRED_CLI_EXTENSIONS, check_and_add_cli_extension, ensure_required_cli_extensions. Uses subprocess (not invoke_cli_command) so freshly installed extensions are picked up correctly. - common/target.py: call ensure_required_cli_extensions() at the start of target_prepare; record step_results["cli-extensions"] = "Ready" on success and surface failures via _print_failure_hint. Tested end-to-end: removed all 3 extensions, ran the auto-install path, verified all 3 reinstalled successfully. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…: ..." log The "Adding N: name1, name2, ..." line was duplicating information the user just typed and could dump a huge comma-separated list to stdout for bulk capability-add operations. The subsequent "Done (N total capabilities)" line already conveys the result. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tall Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add ServiceGroup creation status line (created/reused) with checkmark in hierarchy create tree output, consistent with Site, Configuration, and ConfigurationReference lines. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Matches the same cleanup already applied to add-capability. The '✓ Done' message is sufficient feedback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Both add-capability and remove-capability were printing noisy '✓ Done (N total capabilities)' messages to stderr. The JSON response already contains the updated resource — no need for extra status noise. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Validation for Breaking Change Starting...
Thanks for your contribution! |
|
Hi @atharvau, |
Collaborator
|
workload orchestration |
…e, fix lint issues - Remove the update command from solution-deployment - Add example showing multiple targetIds in solution-deployment create - Fix trailing whitespace in commands.py - Add linter exclusions for option_length_too_long and parameter_should_not_end_in_resource_group Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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? (pip install wheel==0.30.0required)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.