-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_kubernetes_cluster
: Add support for KEDA Autoscaler
#18967
azurerm_kubernetes_cluster
: Add support for KEDA Autoscaler
#18967
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🤖
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this @favoretti. The behaviour of blocks (at least on this resource) is that if the block was present but then absent the feature should be disabled. While messing around with this I noticed that if I try to disable KEDA by removing the block we aren't disabling it.
=== CONT TestAccKubernetesCluster_workloadAutoscalerProfileKeda
testcase.go:110: Step 2/2 error: Check failed: Check 2/2 error: azurerm_kubernetes_cluster.test: Attribute 'workload_autoscaler_profile.0.keda_enabled' expected "false", got "true"
To elaborate on the above error message I changed the second apply in that test to a config where the block is absent.
Once that's fixed this should be good to go though!
Co-authored-by: stephybun <[email protected]>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @favoretti! LGTM 🎉
This functionality has been released in v3.29.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! |
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. |
The reason I made it a block in schema is cause it also supports VPA, but since I'm selfish and time-deprived atm, I just implemented KEDA for now. Making this a block will allow for adding VPA in the future.
AKS-KedaPreview
feature needs to be enabled inMicrosoft.ContainerService
namespace for this to work.