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

Availability zones support for managed clusters #1564

Merged

Conversation

LochanRn
Copy link
Member

@LochanRn LochanRn commented Jul 28, 2021

What type of PR is this?
/kind feature

What this PR does / why we need it:
It adds availability zones support for managedclusters/agentpools in capz

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 #1559

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:

availabilityZones spec added 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 Jul 28, 2021
@k8s-ci-robot
Copy link
Contributor

Hi @LochanRn. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. area/provider/azure Issues or PRs related to azure provider labels Jul 28, 2021
@k8s-ci-robot k8s-ci-robot added the sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. label Jul 28, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from 98e1b92 to b1bc1c5 Compare July 28, 2021 09:26
@CecileRobertMichon
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 28, 2021
@LochanRn
Copy link
Member Author

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

@nprokopic
Copy link
Contributor

Looks good to me.

@nprokopic
Copy link
Contributor

In the future it would be nice to add checks if the region that the cluster is being deployed to supports multiple availability zones, since not all regions support them https://docs.microsoft.com/en-us/azure/availability-zones/az-region#azure-regions-with-availability-zones.

@@ -42,6 +42,9 @@ type AzureManagedMachinePoolSpec struct {
// +kubebuilder:validation:Enum=System;User
Mode string `json:"mode"`

// AvailabilityZones - Availability zones for nodes. Must use VirtualMachineScaleSets AgentPoolType.
AvailabilityZones *[]string `json:"availabilityZones,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

To copy-paste @alexeldeib's nit from AAD PR, maybe just a slice instead of pointer to a slice could do the job here.

Copy link
Member Author

Choose a reason for hiding this comment

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

ack

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 7, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from b1bc1c5 to 61d3332 Compare August 9, 2021 16:21
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 9, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch 3 times, most recently from 6cfcbd1 to 29fe21a Compare August 9, 2021 18:25
@LochanRn
Copy link
Member Author

LochanRn commented Aug 9, 2021

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

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 13, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from 29fe21a to 1a91b44 Compare August 14, 2021 07:24
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 14, 2021
@LochanRn
Copy link
Member Author

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

1 similar comment
@LochanRn
Copy link
Member Author

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

Copy link
Contributor

@devigned devigned left a comment

Choose a reason for hiding this comment

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

lgtm, outside of some optional tags.

exp/api/v1alpha4/azuremanagedmachinepool_types.go Outdated Show resolved Hide resolved
exp/api/v1alpha3/azuremanagedmachinepool_types.go Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 26, 2021
@devigned
Copy link
Contributor

/lgtm cancel

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 26, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from a76ee81 to 48cc156 Compare October 27, 2021 04:12
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from 48cc156 to c0178f5 Compare November 15, 2021 17:07
@CecileRobertMichon
Copy link
Contributor

/area managedclusters

@k8s-ci-robot k8s-ci-robot added the area/managedclusters Issues related to managed AKS clusters created through the CAPZ ManagedCluster Type label Nov 18, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from c0178f5 to ad4276e Compare November 19, 2021 14:06
Copy link
Contributor

@devigned devigned left a comment

Choose a reason for hiding this comment

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

lgtm! Nice work, @LochanRn.

/assign @CecileRobertMichon

@CecileRobertMichon
Copy link
Contributor

/approve

@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 approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 19, 2021
@LochanRn LochanRn force-pushed the aks-availabilityzones branch from ad4276e to 3848ded Compare November 20, 2021 22:05
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 20, 2021
@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Nov 21, 2021

@LochanRn: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-cluster-api-provider-azure-apidiff 3848ded link false /test pull-cluster-api-provider-azure-apidiff

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

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. I understand the commands that are listed here.

@LochanRn
Copy link
Member Author

/test pull-cluster-api-provider-azure-e2e-windows-dockershim

@LochanRn
Copy link
Member Author

@CecileRobertMichon @devigned I think the PR needs a lgtm

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon 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 Nov 22, 2021
@k8s-ci-robot k8s-ci-robot merged commit 7c4ceec into kubernetes-sigs:main Nov 22, 2021
@k8s-ci-robot k8s-ci-robot added this to the v1.1 milestone Nov 22, 2021
@LochanRn LochanRn deleted the aks-availabilityzones branch August 21, 2022 06:05
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/managedclusters Issues related to managed AKS clusters created through the CAPZ ManagedCluster Type area/provider/azure Issues or PRs related to azure provider 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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. 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.

Provide availability zones support in managedclusters
6 participants