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 web application routing #4872

Merged

Conversation

yizhang4321
Copy link
Member


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 aks-preview locally? (pip install azdev required)
    Yes, I have run it. It showed many warnings, but not related to this PR
  • Have you run python scripts/ci/test_index.py -q locally?
    Yes: result:
    % python scripts/ci/test_index.py -q

Ran 9 tests in 0.045s

OK (skipped=2)

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.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

@ghost ghost requested review from zhoxing-ms and wangzelin007 May 23, 2022 05:53
@ghost ghost assigned zhoxing-ms May 23, 2022
@ghost ghost added this to the Jun 2022 (2022-07-05) milestone May 23, 2022
@ghost ghost added the Auto-Assign Auto assign by bot label May 23, 2022
@ghost ghost requested a review from yonzhan May 23, 2022 05:53
@ghost ghost added the AKS label May 23, 2022
Fix the following warnings:
  E128 continuation line under-indented for visual indent
  W293 blank line contains whitespace
  E302 expected 2 blank lines, found 1
@yonzhan
Copy link
Collaborator

yonzhan commented May 23, 2022

aks-preview

src/aks-preview/azext_aks_preview/_params.py Outdated Show resolved Hide resolved
src/aks-preview/azext_aks_preview/decorator.py Outdated Show resolved Hide resolved
src/aks-preview/azext_aks_preview/_consts.py Outdated Show resolved Hide resolved
src/aks-preview/azext_aks_preview/_consts.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/custom.py Outdated Show resolved Hide resolved
Change
  c.argument('dns-zone-resource-id', options_list=['--dns-zone-resource-id'])
to
  c.argument('dns-zone-resource-id')
The options_list=['--dns-zone-resource-id'] just use the default option, so it is not needed to be specified.
…imilary to gitops addon: Run it in "set_up_addon_profiles".
…ebApplicationRouting"

Since web application routing's settings are in its own IngressProfile, not addon profile, we don't need to defined this constant, which is used as the name in addon profile.
@yizhang4321 yizhang4321 requested a review from FumingZhang May 24, 2022 01:28
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.

The PR basically looks good to me. But I've to say there are three different mechanisms to enable an addon which is quite complicated and not all of them are covered by existing test cases.

@yizhang4321
Copy link
Member Author

The PR basically looks good to me. But I've to say there are three different mechanisms to enable an addon which is quite complicated and not all of them are covered by existing test cases.

I've made a note of this to add more test cases. Right now update test case can't be added yet because there's a bug on the backend for updating that's fixed last Friday. After that code is rolled out, I'll add the test cases.

@yizhang4321 yizhang4321 requested a review from FumingZhang May 24, 2022 17:21
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

…S backend.

The bug has been fixed but the release hasn't been rolled out yet. I'll renable the check once the fix has been rolled out.
@zhoxing-ms zhoxing-ms merged commit 46399b6 into Azure:main May 25, 2022
@yizhang4321 yizhang4321 deleted the yizhang4321/AddWebApplicationRouting branch May 25, 2022 08:51
@FumingZhang FumingZhang mentioned this pull request Jun 1, 2022
3 tasks
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.

5 participants