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

azure_kubernetes_service: Add support for BYO cni #15663 #16250

Merged
merged 2 commits into from
May 12, 2022

Conversation

ekarlso
Copy link
Contributor

@ekarlso ekarlso commented Apr 4, 2022

No description provided.

@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 6, 2022

@katbyte can i have a rerun?

@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 6, 2022

Does this look ok to merge or ?

@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 6, 2022

I tested this locally and it seems that the "none" option is not passed to Azure as my cluster gets kubenet for networking instead of being CNI-less then.

@katbyte
Copy link
Collaborator

katbyte commented Apr 7, 2022

got a test failure here @ekarlso

------- Stdout: -------
=== RUN   TestAccDataSourceKubernetesCluster_advancedNetworkingNoneByOCNI
=== PAUSE TestAccDataSourceKubernetesCluster_advancedNetworkingNoneByOCNI
=== CONT  TestAccDataSourceKubernetesCluster_advancedNetworkingNoneByOCNI
    testcase.go:110: Step 1/1 error: Check failed: Check 2/6 error: data.azurerm_kubernetes_cluster.test: Attribute 'network_profile.0.network_plugin' expected "none", got "azure"
--- FAIL: TestAccDataSourceKubernetesCluster_advancedNetworkingNoneByOCNI (537.86s)
FAIL

@ekarlso ekarlso force-pushed the issue-15663 branch 2 times, most recently from 819cd49 to c3f6ca1 Compare April 8, 2022 22:27
@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 8, 2022

@katbyte tried to fix this but still getting this error that I dont know why, I even tried setting it to null but it still reports replacement. - ip_versions = [ - "IPv4", ] -> null # forces replacement

@stephybun stephybun self-assigned this Apr 11, 2022
@stephybun stephybun linked an issue Apr 12, 2022 that may be closed by this pull request
@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 18, 2022

If anyone could help take a stab at this I'd be grateful!

@ekarlso
Copy link
Contributor Author

ekarlso commented Apr 22, 2022

All tests are passing @katbyte , could you take a look ?

@stephybun
Copy link
Member

@ekarlso, thanks for your effort here so far. We generally don't expose the value none explicitly within the provider. When a property is omitted it should imply none or null, this behaviour is widespread throughout the provider and something that we are continually moving towards. However in this particular case we have some concerns about the UX as explained by this comment. We have an upcoming meeting with the AKS team this week where we will discuss the possibility of renaming the enum to a value more representative of this functionality. Until then i'm going to mark this issue as Blocked.

Thanks for your patience.

@stephybun stephybun added this to the Blocked milestone Apr 25, 2022
@ekarlso
Copy link
Contributor Author

ekarlso commented May 2, 2022

@stephybun Any news on this after the meeting with the AKS team? We're in dire need of this one due to Cilium.

@mr-twendt
Copy link

I used this PR to deploy several clusters with BYO CNI and cilium and it works just fine.

Copy link
Member

@stephybun stephybun left a comment

Choose a reason for hiding this comment

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

Thanks for your patience @ekarlso.

After discussions with the AKS team and internally we've decided to make an exception in this case and to allow the value none. I hope you don't mind I've pushed a commit to fix up the test since it was failing and updated the docs so that this is ready to go into the next release.

LGTM 👍

@stephybun stephybun merged commit 3d0e7d5 into hashicorp:main May 12, 2022
stephybun added a commit that referenced this pull request May 12, 2022
@stephybun stephybun modified the milestones: Blocked, v3.6.0 May 12, 2022
@github-actions
Copy link

This functionality has been released in v3.6.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@ekarlso ekarlso deleted the issue-15663 branch May 27, 2022 08:44
@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 Jun 27, 2022
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.

Support for AKS CNI mode: none
4 participants