Skip to content

Conversation

LochanRn
Copy link
Member

@LochanRn LochanRn commented Jan 31, 2023

What type of PR is this?
/kind feature

What this PR does / why we need it:
Support to configure a different subnet for AzureManagedMachinePool.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1599

Special notes for your reviewer:

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

TODOs:

  • squashed commits
  • includes documentation
  • adds unit tests

Release note:

Add subnetName to AzureManagedMachinePool.

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jan 31, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 31, 2023
Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

Overall this looks great! Just a few minor nits from me.

@LochanRn LochanRn force-pushed the subnet-name-ammp branch 2 times, most recently from d69d225 to 706dc6d Compare February 1, 2023 04:43
@nawazkh
Copy link
Member

nawazkh commented Feb 1, 2023

I am wondering if a similar change as that of #2411 is required for AzureManagedMachinePool ?
cc: @CecileRobertMichon

@CecileRobertMichon
Copy link
Contributor

I am wondering if a similar change as that of #2411 is required for AzureManagedMachinePool ?

Good question. I don't believe AKS allows us to pass in custom network interfaces (does it?)

@LochanRn
Copy link
Member Author

LochanRn commented Feb 2, 2023

@CecileRobertMichon If the subnet does not exist should capz create it ??

We do that in the case of vnet and subnet configured in amcp.

Copy link
Contributor

@willie-yao willie-yao left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 2, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: ae2130dfdd293f3779dd1ef8cffa4860270640b0

@CecileRobertMichon
Copy link
Contributor

If the subnet does not exist should capz create it ??

We do that in the case of vnet and subnet configured in amcp.

That's a tricky one. In the case of AzureMachinePool (unmanaged) we don't create/reconcile subnets as part of the MachinePool controller.

Here is the original PR that did this #1411

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 5, 2023
@mboersma
Copy link
Contributor

mboersma commented Feb 9, 2023

/milestone v1.8

@k8s-ci-robot k8s-ci-robot added this to the v1.8 milestone Feb 9, 2023
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 14, 2023
Copy link
Member

@nawazkh nawazkh left a comment

Choose a reason for hiding this comment

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

Apologies if I am too late on sharing my thoughts on this. I went over the PR semantically and have shared some thoughts.
Thanks for looking into this!

@LochanRn
Copy link
Member Author

/test pull-cluster-api-provider-azure-e2e-aks

@LochanRn
Copy link
Member Author

/test pull-cluster-api-provider-azure-test

@LochanRn
Copy link
Member Author

/test pull-cluster-api-provider-azure-e2e-aks

1 similar comment
@LochanRn
Copy link
Member Author

/test pull-cluster-api-provider-azure-e2e-aks

@LochanRn LochanRn force-pushed the subnet-name-ammp branch 2 times, most recently from 142981e to 87555d9 Compare March 20, 2023 09:19
@LochanRn
Copy link
Member Author

@CecileRobertMichon @nawazkh @willie-yao can you guys please take a look at this PR again :)

@CecileRobertMichon
Copy link
Contributor

/lgtm
/assign @nawazkh

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 20, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 3020abe99d087dc2fb535f7897b8ac8b0208489a

Copy link
Member

@nawazkh nawazkh left a comment

Choose a reason for hiding this comment

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

I have a couple of thoughts which I have noted down, especially using pointer package over go-autorest/autorest/to since we are trying to move away from it.
Apart from that, everything else looks great to me. Thank you for putting this together! Solid work!

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 21, 2023
@k8s-ci-robot
Copy link
Contributor

@nawazkh:
goose image

In response to this:

chatgpt
/honk

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@CecileRobertMichon
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 27, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: b360f0afa4d4046363eb6640c28ea8bc654af140

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 27, 2023
@k8s-ci-robot k8s-ci-robot merged commit ecd2964 into kubernetes-sigs:main Mar 27, 2023
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Virtual network in managed clusters should be moved from AMCP to AMMP

7 participants