Description
We were using the kubernetes_namespace resource in our modules, and during an upgrade to 3.0.0 I tried using a moved block so that we wouldn’t have to recreate or import namespaces. Instead, I’m getting the following error:
Error: Move Resource State Not Supported
The "kubernetes_namespace_v1" resource type does not support moving resource
state across resource types.
The same issue occurs for kubernetes_cluster_role_binding_v1 and kubernetes_secret_v1.
Potential Terraform Configuration
resource "kubernetes_namespace_v1" "this" {
metadata {
name = "foo"
}
}
moved {
from = kubernetes_namespace.this
to = kubernetes_namespace_v1.this
}
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
We were using the
kubernetes_namespaceresource in our modules, and during an upgrade to 3.0.0 I tried using amovedblock so that we wouldn’t have to recreate or import namespaces. Instead, I’m getting the following error:The same issue occurs for
kubernetes_cluster_role_binding_v1andkubernetes_secret_v1.Potential Terraform Configuration
Community Note