k2tf icon indicating copy to clipboard operation
k2tf copied to clipboard

Kubernetes YAML to Terraform HCL converter

Results 28 k2tf issues
Sort by recently updated
recently updated
newest added

I ran `k2tf` on this document https://raw.githubusercontent.com/kubernetes/ingress-nginx/ingress-nginx-2.11.3/deploy/static/provider/cloud/deploy.yaml, which contains this resource definition: ``` apiVersion: admissionregistration.k8s.io/v1beta1 kind: ValidatingWebhookConfiguration metadata: labels: helm.sh/chart: ingress-nginx-2.11.1 app.kubernetes.io/name: ingress-nginx app.kubernetes.io/instance: ingress-nginx app.kubernetes.io/version: 0.34.1 app.kubernetes.io/managed-by: Helm app.kubernetes.io/component:...

k2tf imports https://github.com/kubernetes-sigs/metrics-server/releases/193ce3be9d8b28c1863920258c4d1f4f1e656f25/download/components.yaml, but the generated `kubernetes_deployment` resource has an empty_dir key, which should be a block: ```hcl resource "kubernetes_deployment" "metrics_server" { metadata { name = "metrics-server" namespace = "kube-system"...

Hello, I tried your project to parse an IngressRoute, that is a CRD provided by Traefik. ``` 8:46PM Warn | could not parse file error="2 errors occurred:\n\t* could not decode...

There's the use case where one Terraform plan would have to maintain more than one Kubernetes cluster, which requires a different provider for each cluster making the requirement to optionally...

[kubernetes_manifest](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest) now exists, and can be used to create instances of custom resources. It'd be nice if k2tf would support this. RIght now, it just fails (when trying to transform...

I had successfully converted YAML to.tf while I am trying to deploy it I am getting the following error could you please help me to resolve the eeror ![image](https://user-images.githubusercontent.com/64740477/138937311-826b1d17-5ca7-4b7a-a155-d235708968f5.png)

Trying to import `https://raw.githubusercontent.com/alex1989hu/kubelet-serving-cert-approver/7e8359ce4f118bc5456959b5302cefdb26d1f7eb/deploy/standalone-install.yaml` returns the following warnings: ``` 5:50PM Warn | excluding attribute [kubernetes_pod_security_policy.spec.supplemental_group.range] not found in Terraform schema field=PodSecurityPolicy.Spec.SupplementalGroups.Ranges name=kubelet_serving_cert_approver type=kubernetes_pod_security_policy 5:50PM Warn | excluding attribute [kubernetes_pod_security_policy.spec.supplemental_group] not...

Sorry as this isn't specific to this project, but I haven't found a good answer elsewhere. Does using the output of this tool have any catches to it (i.e disclosing...

I did a `brew install k2tf`, and I had to download go and compile the binary. This takes a VERY long time. I expected to just install the compiled binary....

Any chance k2tf could just be a generic yaml to hcl2 converter? Perhaps a mode flag which causes it to load yaml and just spit out the equivalent HCL2 syntax...