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

fix: add missing call to fetch autodiscovered nodegroups #3972

Merged

Conversation

marwanad
Copy link
Member

The refactor in #3717 missed adding this method to fetch and register auto-discovered groups.

/area provider/azure

@k8s-ci-robot k8s-ci-robot added area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 24, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marwanad

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from feiskyer and nilo19 March 24, 2021 02:39
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 24, 2021
@marwanad marwanad force-pushed the fix-autodiscovery-add-missing-call branch from e988297 to b5c5c50 Compare March 24, 2021 03:32
@@ -135,6 +135,7 @@ func TestNodeGroupForNode(t *testing.T) {

registered := provider.azureManager.RegisterNodeGroup(
newTestScaleSet(provider.azureManager, "test-asg"))
provider.azureManager.explicitlyConfigured["test-asg"] = true
Copy link
Member Author

Choose a reason for hiding this comment

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

this is needed because the manager setup logic skips createAzureManagerInternal and thus by the time fetchAutoNodegroups is called explicitlyConfigured will be empty and the nodegroup will be unregistered on L217 in azure_manager.

@marwanad marwanad force-pushed the fix-autodiscovery-add-missing-call branch from b5c5c50 to 8d365c2 Compare March 24, 2021 04:01
@marwanad
Copy link
Member Author

@nilo19 @feiskyer this should be good to go

@nilo19
Copy link
Member

nilo19 commented Mar 29, 2021

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 29, 2021
@k8s-ci-robot k8s-ci-robot merged commit 02e6fb5 into kubernetes:master Mar 29, 2021
@marwanad marwanad deleted the fix-autodiscovery-add-missing-call branch July 3, 2021 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants