k2tf
k2tf copied to clipboard
Kubernetes YAML to Terraform HCL converter
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 
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...