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

add AKSHTTPCustomFeatures header decorator for creating aks #14178

Closed
wants to merge 1 commit into from
Closed

add AKSHTTPCustomFeatures header decorator for creating aks #14178

wants to merge 1 commit into from

Conversation

yangzuo0621
Copy link

This change adds customized headers decorator by passing environment, which let users use preview features when creating AKS cluster.

@yangzuo0621 yangzuo0621 changed the title add customized headers Decorator for creating aks add AKSHTTPCustomFeatures header decorator for creating aks Nov 15, 2021
@tombuildsstuff tombuildsstuff added enhancement service/kubernetes-cluster upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Nov 15, 2021
@tombuildsstuff
Copy link
Contributor

hi @yangzuo0621

Thanks for this PR.

Taking a look through here unfortunately this isn't something we can ship in Terraform at this time for a number of reasons.

The primary one here is that these are sourced from an Environment Variable and thus aren't defined in the config - however even if we were to move these to schema fields, at this point in time these can only be set in/parsed from the HTTP Headers for the request/response.

Whilst this approach works insofar as it sends the headers, due to the volatility of the Azure API's there's no guarantee this won't change behaviourally between different versions of the Azure API - and since this isn't provided in the Azure SDK (or the Swagger which supports it) - in practice it'd be hard for us to detect that this functionality has changed.

In order to support this functionality (and implement #6793) we'd need these Headers to be added to the Swagger for the AKS API - at which point this'll become available in the Azure SDK (and any other tooling which uses it). Whilst that may seem like a small distinction - that means this functionality becomes covered by the ARM Deprecation policy - meaning that changes have to go through a deprecation policy such that external tooling can rely on it. In order to get that added I'd suggest opening an issue on the AKS Repository where someone from the AKS Team should be able to get that added to the next version of the Swagger, which'd allow us to support this functionality.

As such whilst I'd like to thank you for this contribution, until this information is exposed in the Azure Swagger (such that there's a compatibility guarantee) I'm going to have to close this PR for the moment.

Thanks!

@dhirschfeld
Copy link
Contributor

Hi @tombuildsstuff, whilst I'm fine with the wontfix resolution and the reasons for it, it seems you could have mentioned that over in #6793? It feels like I've been wasting the last 18 months monitoring an issue that won't be fixed when I should have instead opened an issue in Azure/AKS 🙁

Ad-hoc terraform users obviously aren't the best placed to open an issue in Azure/AKS as they have no insight into what other mechanism the azurerm provider might be able to support to provide access to preview features.

Instead of simply closing this as wontfix it would be great if someone from the azurerm team could open the issue in Azure/AKS on behalf of users, requesting a different mechanism for preview features that would be supportable by the azurerm provider.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement service/kubernetes-cluster size/XS upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants