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-preview: feature support for apiserver vnet integration #4787

Merged
merged 2 commits into from
May 12, 2022

Conversation

levimm
Copy link
Contributor

@levimm levimm commented May 7, 2022


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?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

@yonzhan
Copy link
Collaborator

yonzhan commented May 7, 2022

aks

@yonzhan yonzhan requested review from zhoxing-ms and wangzelin007 May 7, 2022 08:43
@yonzhan yonzhan added this to the May 2022 (2022-05-24) milestone May 7, 2022
@levimm levimm force-pushed the lima2/0505-swift branch from 6eca2e3 to 194a5e9 Compare May 9, 2022 01:39
@levimm levimm changed the title Lima2/0505 swift aks-preview: feature support for apiserver vnet integration May 9, 2022
@levimm levimm force-pushed the lima2/0505-swift branch from d6ba667 to 593f806 Compare May 9, 2022 08:36
src/aks-preview/HISTORY.md Outdated Show resolved Hide resolved
@levimm levimm force-pushed the lima2/0505-swift branch from 593f806 to 48c139a Compare May 9, 2022 08:40
@levimm levimm marked this pull request as ready for review May 9, 2022 08:41
@levimm
Copy link
Contributor Author

levimm commented May 9, 2022

wait for DRI to introduce 04-02 sdk.

@levimm levimm force-pushed the lima2/0505-swift branch 2 times, most recently from 68ade80 to 7920053 Compare May 11, 2022 01:05
@FumingZhang
Copy link
Member

For the failure in AZCLI AKS UNIT TEST V2 - [AKS-PREVIEW], it complains missing test coverage for decorator.py .

@levimm levimm force-pushed the lima2/0505-swift branch from 7920053 to 67d2bcb Compare May 11, 2022 01:46
src/aks-preview/azext_aks_preview/_params.py Outdated Show resolved Hide resolved
src/aks-preview/azext_aks_preview/custom.py Outdated Show resolved Hide resolved
src/aks-preview/azext_aks_preview/decorator.py Outdated Show resolved Hide resolved
@levimm levimm force-pushed the lima2/0505-swift branch 2 times, most recently from c7f4a48 to 7741be9 Compare May 11, 2022 02:12
@levimm levimm force-pushed the lima2/0505-swift branch from 7741be9 to d8681f5 Compare May 11, 2022 02:20
@levimm levimm force-pushed the lima2/0505-swift branch 4 times, most recently from cc18445 to f05ed64 Compare May 11, 2022 06:43
@levimm levimm force-pushed the lima2/0505-swift branch from f05ed64 to fe6906e Compare May 11, 2022 07:08
"Please use it together with --enable-private-cluster"
)
if self.decorator_mode == DecoratorMode.UPDATE:
if enable_apiserver_vnet_integration:
Copy link
Member

Choose a reason for hiding this comment

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

do we need to validate if it is private cluster or not?
It is validated by rp right now, which means that is only nice to have. asking is because I see it in CREATE path but missed in UPDATE path.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for the update, I don't think we need to pass the parameter --enable-private-cluster. And cli side cannot get existing mc so we cannot tell if it's private cluster or not at cli side.

Copy link
Member

Choose a reason for hiding this comment

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

ok, that make sense.

Copy link
Member

@FumingZhang FumingZhang May 11, 2022

Choose a reason for hiding this comment

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

Actually, you could check if this is a private cluster with a helper function check_is_private_cluster (azure.cli.command_modules.acs._helpers.check_is_private_cluster). In an update scenario, the mc in the context is the "existing mc".

More details about "existing mc". To be honest, the current decorator does not record the original mc obtained by a GET at the beginning of the update command. The mc in the context is gradually updated with the update of each sub-profile, but I think it is impossible to modify whether a cluster is a private cluster through update? So you can use this "existing mc" to check directly.

The original mc will be preserved in the upcoming v2 decorator.

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.

Queued a pipeline to check the newly added case test_aks_create_with_apiserver_vnet_integration, works fine.

The PR looks good to me:shipit:

@levimm
Copy link
Contributor Author

levimm commented May 11, 2022

@zhoxing-ms Could you help merge this pr?

@zhoxing-ms zhoxing-ms merged commit 4358498 into Azure:main May 12, 2022
FumingZhang added a commit to FumingZhang/azure-cli-extensions that referenced this pull request May 26, 2022
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