Skip to content

add aks core extensions cli commands #8665

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 81 commits into
base: main
Choose a base branch
from

Conversation

sophsoph321
Copy link

@sophsoph321 sophsoph321 commented Apr 16, 2025


Implementation details can be found here: https://microsoft-my.sharepoint.com/:w:/p/sophiezhao/EePSiywVdE1NpnA53AI6JfgBNJQZ0pVqmKswIaxZ514zag?e=lgblFt
This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

added commands:
az aks extension create
az aks extension update
az aks extension list
az aks extension delete
az aks extension show
az aks extension type list-by-location
az aks extension type show-by-location
az aks extension type list-versions-by-location
az aks extension type show-version-by-location
az aks extension type list-by-cluster
az aks extension type show-by-cluster
az aks extension type list-versions-by-cluster
az aks extension type show-version-by-cluster

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.

Copy link

azure-client-tools-bot-prd bot commented Apr 16, 2025

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1011 - SubgroupAdd aks extension sub group aks extension added
⚠️ 1011 - SubgroupAdd aks extension-type sub group aks extension-type added

Copy link

Hi @sophsoph321,
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.

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 16, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

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

github-actions bot commented Apr 16, 2025

Hi @sophsoph321

Release Suggestions

Module: aks-preview

  • Update VERSION to 14.0.0b5 in src/aks-preview/setup.py

Notes

table_transformer=k8s_extension_type_show_table_format
)
g.custom_command(
'list-versions-by-location',
Copy link
Member

Choose a reason for hiding this comment

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

as mentioned above, can we make this az extension type version list which takes an optional --location or --cluster parameter? If --location parameter specified, you get the list-by-locations experience, same with --cluster.

Same for extension type list.

It just reduces the number of commands and instead uses optional arguments, which seems cleaner. (IMO you should do this in the az extension CLI too, but that's up to you guys)

):
if not check_if_extension_type_is_in_allow_list(extension_type.lower()):
raise ValidationError(f"Failed to install {extension_type.lower()}" +
"as it is not in allowed list of extension types")
Copy link
Member

Choose a reason for hiding this comment

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

print the list?

@janeziqiguo
Copy link

As discussed in the chat, please ensure that Backup and Flux meet the core extension criteria before allowlist them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Auto-Assign Auto assign by bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants