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

update the container-service sdk from 2020-02-01 to 2021-03-01 #1416

Closed
wants to merge 3 commits into from

Conversation

LochanRn
Copy link
Member

@LochanRn LochanRn commented Jun 7, 2021

What type of PR is this?
/kind feature

What this PR does / why we need it:
Updates the existing containerService sdk to the latest version i.e 2021-03-01.

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

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:

container-service api update

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/feature Categorizes issue or PR as related to a new feature. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Jun 7, 2021
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign devigned after the PR has been reviewed.
You can assign the PR to them by writing /assign @devigned in a comment when ready.

The full list of commands accepted by this bot can be found 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 area/provider/azure Issues or PRs related to azure provider sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 7, 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 the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 7, 2021
@LochanRn
Copy link
Member Author

LochanRn commented Jun 7, 2021

This is just an initial commit to review changes/modifications done after changing the containerservice sdk.

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.

The update of the API version looks good. I only question the VMSizeTypes to *string change and what it means about the behavior of the PUT request to Azure.

The change can be seen by comparing: API version 2021-02-01 and API version 2021-03-01.

One thing to consider. Perhaps, this should be it's own PR, rather than combining this with the AAD support as the name of the PR implies, [WIP] aad support for aks.

@@ -52,7 +52,7 @@ func (s *Service) Reconcile(ctx context.Context, spec interface{}) error {

profile := containerservice.AgentPool{
ManagedClusterAgentPoolProfileProperties: &containerservice.ManagedClusterAgentPoolProfileProperties{
VMSize: containerservice.VMSizeTypes(agentPoolSpec.SKU),
VMSize: &agentPoolSpec.SKU,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the enumeration of VMSizeTypes was too restrictive and the AKS team wanted to allow any string to be specified regardless of the string being in the set of VMSizeTypes.

@CecileRobertMichon what do you think?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you for the confirmation, @alexeldeib!

@devigned
Copy link
Contributor

devigned commented Jun 7, 2021

/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. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jun 7, 2021
@LochanRn LochanRn changed the title [WIP] aad support for aks update the container-service api from 2020-02-01 to 2021-03-01 Jun 7, 2021
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 7, 2021
@CecileRobertMichon
Copy link
Contributor

@LochanRn please amend the commit to accurately describe what this is doing (it's not actually adding support for AAD)

@LochanRn LochanRn changed the title update the container-service api from 2020-02-01 to 2021-03-01 update the container-service sdk from 2020-02-01 to 2021-03-01 Jun 7, 2021
@LochanRn
Copy link
Member Author

LochanRn commented Jun 7, 2021

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

@CecileRobertMichon
Copy link
Contributor

I tried creating an aks cluster from this changeset, getting:

[manager] E0607 22:33:26.804946       7 controller.go:302] controller-runtime/manager/controller/azuremanagedcontrolplane "msg"="Reconciler error" "error"="error creating AzureManagedControlPlane default/aks-template: failed to reconcile managed cluster: failed to reconcile managed cluster aks-template: failed to create managed cluster, failed to begin operation: containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=0 -- Original Error: Code=\"MustDefineAtLeastOneSystemPool\" Message=\"Must define at least one system pool.\"" "name"="aks-template" "namespace"="default" "reconciler group"="infrastructure.cluster.x-k8s.io" "reconciler kind"="AzureManagedControlPlane" 

/hold

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 7, 2021
@CecileRobertMichon
Copy link
Contributor

@alexeldeib can you validate that setting the agent pool to mode System for now is appropriate to mitigate the error until #1376 is implemented?

@alexeldeib
Copy link
Contributor

alexeldeib commented Jun 14, 2021

I think we need to implement #1376 in tandem with the SDK update tbh, or else deletion behavior will get pretty messy. @LochanRn reached out on slack and sounds like will work on both #1376 + SDK update. I think the AAD functionality would be good in a follow up PR after that.

@k8s-ci-robot
Copy link
Contributor

@LochanRn: PR needs rebase.

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 the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 18, 2021
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jun 20, 2021
@k8s-ci-robot
Copy link
Contributor

@LochanRn: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-cluster-api-provider-azure-verify 58b57c9 link /test pull-cluster-api-provider-azure-verify
pull-cluster-api-provider-azure-e2e 58b57c9 link /test pull-cluster-api-provider-azure-e2e
pull-cluster-api-provider-azure-test 58b57c9 link /test pull-cluster-api-provider-azure-test
pull-cluster-api-provider-azure-build 58b57c9 link /test pull-cluster-api-provider-azure-build
pull-cluster-api-provider-azure-apidiff 58b57c9 link /test pull-cluster-api-provider-azure-apidiff
pull-cluster-api-provider-azure-e2e-windows 58b57c9 link /test pull-cluster-api-provider-azure-e2e-windows
pull-cluster-api-provider-azure-coverage 58b57c9 link /test pull-cluster-api-provider-azure-coverage

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

LochanRn commented Jul 8, 2021

closing this PR as it is fixed in #1475

@LochanRn LochanRn closed this Jul 8, 2021
@LochanRn LochanRn deleted the aad-aks-support branch July 25, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update containerservice sdk API version from 2020-02-01 to 2021-05-01
5 participants