Skip to content
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

[AKS] Create default role assignments for automatic sku #7570

Merged
merged 12 commits into from
May 6, 2024

Conversation

purpleran7
Copy link
Contributor


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

Related command

Create three default role assignments for automatic sku clusters.

az aks create -g -n --sku automatic

General Guidelines

  • [ X ] Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • [ X ] Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • [ X ] 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 May 2, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented May 2, 2024

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

Copy link

github-actions bot commented May 2, 2024

⚠️ Release Suggestions

Module: aks-preview

  • Update version to 3.0.0b12 in setup.py

Notes

  • Stable/preview tag is inherited from last release. If needed, please add stable/preview label to modify it.
  • Major/minor/patch/pre increment of version number is calculated by pull request code changes automatically. If needed, please add major/minor/patch/pre label to adjust it.
  • For more info about extension versioning, please refer to Extension version schema

@purpleran7 purpleran7 changed the title Create default role assignments for automatic sku [AKS] Create default role assignments for automatic sku May 2, 2024
@@ -3696,6 +3702,35 @@ def postprocessing_after_mc_created(self, cluster: ManagedCluster) -> None:
is_called_from_extension=True,
)

# Add role assignments for automatic sku
if cluster.sku.name == "Automatic":
Copy link
Contributor

@chengliangli0918 chengliangli0918 May 2, 2024

Choose a reason for hiding this comment

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

if cluster.sku is not None and cluster.sku.name=="Automatic":

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

lgtm

Queued live test to validate the change.

  • test_aks_automatic_sku

@yanzhudd yanzhudd merged commit c6fd762 into Azure:main May 6, 2024
15 checks passed
@azclibot
Copy link
Collaborator

azclibot commented May 6, 2024

[Release] Update index.json for extension [ aks-preview ] : https://dev.azure.com/azclitools/release/_build/results?buildId=154900&view=results

Copy link

@Moazzem-Hossain-pixel Moazzem-Hossain-pixel left a comment

Choose a reason for hiding this comment

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

Thanks for your contributions.

Greedygre pushed a commit to Greedygre/azure-cli-extensions that referenced this pull request May 7, 2024
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.

8 participants