Skip to content

Move Resource State Not Supported when migrating to 3.0.0 #2812

@slenky

Description

@slenky

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions