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

Upgrade containerservice API to 2020-09-01 #8982

Merged
merged 15 commits into from
Nov 5, 2020
Merged

Upgrade containerservice API to 2020-09-01 #8982

merged 15 commits into from
Nov 5, 2020

Conversation

favoretti
Copy link
Collaborator

In prep for #8657

@favoretti favoretti marked this pull request as draft October 22, 2020 18:56
@favoretti favoretti changed the title Upgrade containerservice API to 2020-09-01 [WIP] Upgrade containerservice API to 2020-09-01 Oct 22, 2020
@favoretti
Copy link
Collaborator Author

Fixing acceptance tests atm, will take a few more days I think...

@ghost ghost added the documentation label Oct 23, 2020
@favoretti favoretti marked this pull request as ready for review October 23, 2020 15:14
@favoretti
Copy link
Collaborator Author

@tombuildsstuff I think now we should be ready to review this.

@favoretti favoretti changed the title [WIP] Upgrade containerservice API to 2020-09-01 Upgrade containerservice API to 2020-09-01 Oct 23, 2020
@tombuildsstuff tombuildsstuff self-assigned this Oct 27, 2020
Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @favoretti

Thanks for this PR - apologies for the delayed review here.

As discussed offline, I was hoping to dig in deeper into these comments today to be able to confirm the migration path (e.g. if we should rip these out, since they're no longer usable due to the breaking change on the AKS API side - or if we should keep them supported and deprecated for now, raising an error if the fields specified).

Unfortunately I didn't get a chance to do that today - but generally speaking we'd tend to deprecate this field, and then remove it in 3.0 - rather than ripping this out and introducing a breaking config change - to follow the semantic versioning rules here (the best we can, anyway). What that means is introducing a "DeprecationMessage" to the items in the schema to raise the deprecation alert in the Terraform CLI - and an error during creation for the Pod Security Policy which can no longer be configured, if that's set to true - what do you think?

Thanks!

favoretti and others added 2 commits October 31, 2020 12:37
Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
Co-authored-by: Tom Harvey <tombuildsstuff@users.noreply.github.com>
@favoretti
Copy link
Collaborator Author

Hey @tombuildsstuff, thank you for the review! Committed your suggestions, will work on deprecation tomorrow/monday.

@favoretti
Copy link
Collaborator Author

@tombuildsstuff resolved everything but 2 things, will try to catch you on slack tomorrow to talk about those, not really sure what to do about them.

Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

hey @favoretti

Thanks for pushing those changes - taking a look through, aside from one minor comment this otherwise LGTM 👍

Thanks!

@tombuildsstuff
Copy link
Member

As discussed offline - the "addOnProfile" blocks are intentionally failing (both in master and this branch) due to a behavioural difference between Azure Public and other Azure Environments - where the Kubernetes Dashboard is enabled by default in Azure Public up until Kubernetes 1.18/1.19 (at which point it's no longer available), but isn't available (at all) in some other Azure Environments (China, USGovernment). As such whilst it's unfortunate these tests fail, it's required to be able to covers these scenarios when using different versions of AKS in different Azure Environments - but the resource itself works fine 👍

Copy link
Member

@tombuildsstuff tombuildsstuff left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@tombuildsstuff
Copy link
Member

Ignoring some intentionally failing tests for the "AddOnProfile", due to the behaviour of AKS in Azure Public - and one temporary AKS failure the tests otherwise look good:

Screenshot 2020-11-05 at 11 08 40

@tombuildsstuff tombuildsstuff added this to the v2.35.0 milestone Nov 5, 2020
@tombuildsstuff tombuildsstuff merged commit 2baeea5 into hashicorp:master Nov 5, 2020
tombuildsstuff added a commit that referenced this pull request Nov 5, 2020
@favoretti favoretti deleted the favoretti/aks_api_upgrade branch November 5, 2020 12:06
@ghost
Copy link

ghost commented Nov 5, 2020

This has been released in version 2.35.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.35.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 5, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Dec 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants