Skip to content

Add option to include the import syntax for the resource in a comment above it #33

@jrhouston

Description

@jrhouston

e.g

kubectl get po -o yaml | tfk8s --import --strip

# terraform import kubernetes_manifest.configmap_test "apiVersion=v1,kind=ConfigMap,name=test,namespace=default"
resource "kubernetes_manifest" "configmap_test" {
  manifest = {
    "apiVersion" = "v1"
    "data" = {
      "TEST" = "test"
    }
    "kind" = "ConfigMap"
    "metadata" = {
      "name" = "test"
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions