You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource"kubernetes_horizontal_pod_autoscaler_v2beta2""spooler" {
metadata {
name ="test-hpa"
namespace ="testing"
}
spec {
min_replicas =2
max_replicas =4scale_target_ref {
kind ="Deployment"
name ="test-deployment"
}
metric {
type ="ContainerResource"ContainerResource {
name ="memory"
container ="test-container"target {
type ="Utilization"
average_utilization ="70"
}
}
}
}
}
Debug Output
│ Error: Unsupported block type
│
│ on modules/myusage/hpa.tf line 15, in resource "kubernetes_horizontal_pod_autoscaler_v2beta2" "spooler":
│ 15: ContainerResource {
│
│ Blocks of type "ContainerResource" are not expected here.
Panic Output
Steps to Reproduce
terraform apply
Expected Behavior
What should have happened?
should plan to create the HPA resource
Actual Behavior
What actually happened?
│ Error: Unsupported block type
│
│ on modules/myusage/hpa.tf line 15, in resource "kubernetes_horizontal_pod_autoscaler_v2beta2" "spooler":
│ 15: ContainerResource {
│
│ Blocks of type "ContainerResource" are not expected here.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this issue. The fix is ready and I am going to merge it into the main branch. It will be available in the upcoming release. Please keep an eye on the release notes.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Terraform Version, Provider Version and Kubernetes Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Steps to Reproduce
Expected Behavior
What should have happened?
Actual Behavior
What actually happened?
The text was updated successfully, but these errors were encountered: