sl1pm4t / k2tf

Kubernetes YAML to Terraform HCL converter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

storageClass.parameters & provisioner are not converted

hdhruna opened this issue · comments

I found an issue with version 0.2.8

An example storageClass:

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: slow
provisioner: kubernetes.io/gce-pd
parameters:
  type: pd-standard
  replication-type: none

Command used to convert yaml2tf:
k2tf -x -f manifests/yamls/test.yaml -o manifests/k8s/test.tf

Converted tf object:

resource "kubernetes_storage_class" "slow" {
  metadata {
    name = "slow"
  }

  parameter {}
}

It seems parameter & provisioner is missing out the arguments.

Facing the same issue.Can anyone update on this?