terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
kubernetes_deployment doesn't delete resources ( limits & requests ) from kubernetes resource
Terraform Version, Provider Version and Kubernetes Version
Terraform version: v0.14.9
Kubernetes provider version: v2.0.3
Kubernetes version: v1.18.14
Affected Resource(s)
- kubernetes_deployment
Terraform Configuration Files
resource "kubernetes_deployment" "test" {
metadata {
name = "test"
}
spec {
selector {
match_labels = {
app = "test"
}
}
template {
metadata {
labels = {
app = "test"
}
}
spec {
container {
name = "test"
image = "nginx"
resources {
requests = {
memory = 100
}
}
}
}
}
}
}
Steps to Reproduce
- Describe
kubernetes_deployment
withresources { some limits, some requests}
block. -
terraform apply
--> yes - Delete
resources {}
block from resource. -
terraform apply
--> nothing to change
Expected Behavior
Terraform should delete 'resources' block, from kubernetes deployment.
Actual Behavior
Resources limit & requests still exist in kubernetes deployment resource. Terraform shows noting to change.
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!
Remove stale
Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!
Remove stale
Any reason MR wasn't accepted?
We are facing the same issue. @ptixed which MR are you refering?