Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hangs while converting custom resources #45

Open
rumeshmadhusanka opened this issue Jun 21, 2022 · 1 comment
Open

Hangs while converting custom resources #45

rumeshmadhusanka opened this issue Jun 21, 2022 · 1 comment

Comments

@rumeshmadhusanka
Copy link

Hangs while converting this.

apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: nvidia-gpu-operator-group
  namespace: nvidia-gpu-operator
spec:
 targetNamespaces:
 - nvidia-gpu-operator

I installed tfk8s using go

@jrhouston
Copy link
Owner

jrhouston commented Jun 23, 2022

Can you show the command you ran? I just tried it and it worked:

$ cat bug.yaml
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
  name: nvidia-gpu-operator-group
  namespace: nvidia-gpu-operator
spec:
 targetNamespaces:
 - nvidia-gpu-operator

$ cat bug.yaml | tfk8s
resource "kubernetes_manifest" "operatorgroup_nvidia_gpu_operator_nvidia_gpu_operator_group" {
  manifest = {
    "apiVersion" = "operators.coreos.com/v1"
    "kind"       = "OperatorGroup"
    "metadata" = {
      "name"      = "nvidia-gpu-operator-group"
      "namespace" = "nvidia-gpu-operator"
    }
    "spec" = {
      "targetNamespaces" = [
        "nvidia-gpu-operator",
      ]
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants