-
Notifications
You must be signed in to change notification settings - Fork 519
chore: Add EnableAHUB in WindowsProfile #3322
Conversation
/azp run pr-e2e |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #3322 +/- ##
==========================================
+ Coverage 72.57% 73.17% +0.60%
==========================================
Files 147 147
Lines 25215 24923 -292
==========================================
- Hits 18300 18238 -62
+ Misses 5782 5559 -223
+ Partials 1133 1126 -7
Continue to review full report at Codecov.
|
@AbelHu How can we add E2E test coverage for this? Can the current Windows VHD image be associated with a LicenseType? |
@jackfrancis From my understanding and the test result, |
One question for the type Refine the PR to follow the style of |
@AbelHu I see the The only consideration would be whether or not the evolution of that type definition might want to evolve discretely for the api and vlabs data structures. In this case I don't think it will. |
@jackfrancis Agree with your point. That is why I defined it in common in the original PR. But later I found that common/types.go is never introduced in AKS and it seems like to introduce many conflicts for namespace in AKS unit tests so I define them separately for vlabs and api. |
@AbelHu Does AKS ever plan to use liscenseType of Windows_Client here? If not it might be good to add validation to fail if licenseType is set to Windows_Client. |
Can you either add comments in docs/validation about this only working for scale sets or set this up for availability sets too? In the portal I see on option to 'use Azure Hybrid Benefit' when creating non-scaleset VMs which get added to availability sets? |
I will add the comment. AKS only supports Windows with VMSS. If later we need to support this in VMAS, I can help to add the support later. @marosset And if many aks-engine users are using VMAS with Windows and want to enable AHUB, I can help to do it in this PR if you can share how I can test VMAS with Windows in aks-engine. |
AKS only uses |
f19bf3e
to
449a2bd
Compare
@marosset @jackfrancis @mboersma I will update this PR with below changes soon:
|
Sounds good! |
@keikhara helped to confirm that AKS only needs to set Please help to review it. @marosset @jackfrancis @mboersma |
@marosset Could you help to take a look at the updated PR? Thanks. |
Can we add one e2e test config that exercises this behavior? you can add a new json file at https://github.com/Azure/aks-engine/tree/master/test/e2e/test_cluster_configs/windows with in enabled and also set
in the top (like in https://github.com/Azure/aks-engine/blob/master/test/e2e/test_cluster_configs/windows/vhd_url.json) |
Looks good after we get one e2e test config with this set to true. |
Added now. Why I did not add it is because it is difficult to verify it after enabling AHUB. currently it only can verify whether the cluster can be created successfully with enabling AHUB. |
That is alright, the SKIP_TESTS equals true will cause the e2e test to only validate deployment and will skip running the actually e2e tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AbelHu, marosset The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Add LicenseType in WindowsProfile * fix run tests in parallel with same variable * Change LicenseType to EnableAHUB * Support LicenseType in VMAS * Update doc * Add E2E test config for Windows AHUB
* Add LicenseType in WindowsProfile * fix run tests in parallel with same variable * Change LicenseType to EnableAHUB * Support LicenseType in VMAS * Update doc * Add E2E test config for Windows AHUB
* chore: Add EnableAHUB in WindowsProfile (#3322) * Add LicenseType in WindowsProfile * fix run tests in parallel with same variable * Change LicenseType to EnableAHUB * Support LicenseType in VMAS * Update doc * Add E2E test config for Windows AHUB * fix: don't hardcode csi enableproxy in kubeclusterconfig.json (#3127) fix has been manually validated and we want to include this in v0.50.0 Co-authored-by: Mark Rossetti <[email protected]>
* Add LicenseType in WindowsProfile * fix run tests in parallel with same variable * Change LicenseType to EnableAHUB * Support LicenseType in VMAS * Update doc * Add E2E test config for Windows AHUB
Reason for Change:
Allow users to use Azure hybrid benefit for Windows server.
Issue Fixed:
Requirements:
Notes: