Skip to content

[Azure RBAC] Remove deprecated flags#16

Merged
bgriddaluru merged 43 commits intomainfrom
vithumma/az_rbac
Oct 28, 2025
Merged

[Azure RBAC] Remove deprecated flags#16
bgriddaluru merged 43 commits intomainfrom
vithumma/az_rbac

Conversation

@vineeth-thumma
Copy link

@vineeth-thumma vineeth-thumma commented Sep 10, 2025

  • Removed deprecated --app-id and --app-secret flags from the connectedk8s extension.

Since the change will remove deprecated parameters, this should go in as part of the upcoming breaking changes release:
https://github.com/Azure/azure-cli/milestone/162
https://eng.ms/docs/cloud-ai-platform/azure-core/azure-experiences-and-ecosystems/azure-portal-and-client-tools-ruhim/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/teams_docs/azcli_docs/breaking_changes

UT/E2E run - https://dev.azure.com/ClusterConfigurationAgent/Extension%20CLI/_build/results?buildId=5287894&view=results

Relevant WI: https://msazure.visualstudio.com/AzureArcPlatform/_workitems/edit/35025766


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? (pip install wheel==0.30.0 required)
  • 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.

Bavneet Singh and others added 11 commits March 18, 2025 15:11
* forcedelete

* format

* add code owner

* mypy
* Add parameterization for the airgapped clouds

* Fix azdev style

* MCR path function

* azdev, ruff, and mypy

---------

Co-authored-by: Matthew McNeal (from Dev Box) <mmcneal@microsoft.com>
Co-authored-by: mmcneal <mmcneal@microsoft.com>
* Update cluster diagnostics helm chart to 1.29.3

* Fix lint issues

---------

Co-authored-by: bgriddaluru <bharath.griddaluru@microsoft.com>
@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses RBAC deprecation and fixes an UnboundLocalError issue in the Connected Kubernetes extension. The changes remove deprecated --app-id and --app-secret flags, fix a variable initialization bug when only Azure RBAC features are enabled, and improve user guidance for kubelogin version requirements.

  • Removed deprecated --app-id and --app-secret flags from the connectedk8s extension
  • Fixed UnboundLocalError by initializing variables that may be used when only azure-rbac feature is enabled
  • Enhanced kubelogin warning message to be more actionable with download link and troubleshooting guidance

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/connectedk8s/azext_connectedk8s/custom.py Fixed variable initialization bug and improved kubelogin warning message
src/connectedk8s/azext_connectedk8s/_params.py Removed deprecated RBAC command line parameters
src/connectedk8s/HISTORY.rst Updated release notes with bug fixes and deprecation changes

@vineeth-thumma vineeth-thumma changed the title RBAC deprecation & fix the issue [Azure RBAC] Remove deprecated flags, fix Azure RBAC enablement bug, and improve logging Sep 10, 2025
@vineeth-thumma vineeth-thumma changed the title [DO NOT MERGE] [Azure RBAC] Remove deprecated flags, fix Azure RBAC enablement bug, and improve logging [DO NOT MERGE] [Azure RBAC] Remove deprecated flags Sep 29, 2025
vineeth-thumma and others added 3 commits September 29, 2025 13:14
…add E2E coverage and improve logging (#20)

* add pester tests for connectedk8s cli extension

* Pass the force delete param to the API call (#4)

* forcedelete

* format

* add code owner

* mypy

* Parameterize for airgapped clouds (#5)

* Add parameterization for the airgapped clouds

* Fix azdev style

* MCR path function

* azdev, ruff, and mypy

---------

Co-authored-by: Matthew McNeal (from Dev Box) <mmcneal@microsoft.com>

* Oras client fix to work with different MCRs (#6)

Co-authored-by: mmcneal <mmcneal@microsoft.com>

* fix CI testcases for nodepool image issues (#8)

* update errors for the config and connectivity issues (#11)

* update errors

* format

* style

* update python version to 3.13 (#12)

* Update cluster diagnostics image to 1.29.3 (#7)

* Update cluster diagnostics helm chart to 1.29.3

* Fix lint issues

---------

Co-authored-by: bgriddaluru <bharath.griddaluru@microsoft.com>

* RBAC deprecation & fix the issue

* typo

* fix comments

* update tests

* add pester tests for connectedk8s cli extension

* Pass the force delete param to the API call (#4)

* forcedelete

* format

* add code owner

* mypy

* fix CI testcases for nodepool image issues (#8)

* update errors for the config and connectivity issues (#11)

* update errors

* format

* style

* update python version to 3.13 (#12)

* rebase

* fix tests

* fix version

* fix mypy, lint

* fix test

* fix test

* fix test

* fix test

* fix test

* rename test

* deprecate flags

* rebase

* rebase

* bump version for release

---------

Co-authored-by: Bavneet Singh <bavneetsingh@microsoft.com>
Co-authored-by: Atchut Kumar Barli <atchut@gmail.com>
Co-authored-by: mcnealm13 <57726243+mcnealm13@users.noreply.github.com>
Co-authored-by: Matthew McNeal (from Dev Box) <mmcneal@microsoft.com>
Co-authored-by: Bavneet Singh <33008256+bavneetsingh16@users.noreply.github.com>
Co-authored-by: bgriddaluru <117554445+bgriddaluru@users.noreply.github.com>
Co-authored-by: bgriddaluru <bharath.griddaluru@microsoft.com>
Co-authored-by: vithumma <vithumma@microsoft.com>
@bavneetsingh16 bavneetsingh16 force-pushed the main branch 2 times, most recently from f2e906b to 3c08eac Compare September 30, 2025 16:41
@vineeth-thumma vineeth-thumma changed the title [DO NOT MERGE] [Azure RBAC] Remove deprecated flags [Azure RBAC] Remove deprecated flags Oct 16, 2025
@vineeth-thumma vineeth-thumma changed the title [Azure RBAC] Remove deprecated flags [DO NOT MERGE] [Azure RBAC] Remove deprecated flags Oct 16, 2025
@vineeth-thumma vineeth-thumma changed the title [DO NOT MERGE] [Azure RBAC] Remove deprecated flags [Azure RBAC] Remove deprecated flags Oct 28, 2025
@vineeth-thumma vineeth-thumma removed the Do Not Merge PR is good to review, but should not be merged. label Oct 28, 2025
@bgriddaluru bgriddaluru merged commit bbebbcd into main Oct 28, 2025
5 of 9 checks passed
@bgriddaluru bgriddaluru deleted the vithumma/az_rbac branch October 28, 2025 23:39
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