k2tf
k2tf copied to clipboard
Kubernetes YAML to Terraform HCL converter
I've been converting a bunch of complex multi-line config files over. For readability, it would be great to support optional [HEREDOC](https://www.terraform.io/docs/configuration-0-11/syntax.html) style multi-line string values. For example rather than: ```terraform...
When converting this ``` apiVersion: v1 kind: Secret metadata: labels: k8s-app: kubernetes-dashboard name: kubernetes-dashboard-csrf namespace: kubernetes-dashboard type: Opaque data: csrf: "" ``` The result does not contain the data.csrf field,...
Currently k2tf is entirely in the main package. The current setup does not allow a developer to reuse the k2tf code. I request k2tf to be refactored such that a...
The [hcl2 repo](https://github.com/hashicorp/hcl2) was only used for the development phase of HCL 2 and is now archived. This PR replaces the use of `github.com/hashicorp/hcl2` with `github.com/hashicorp/hcl/v2`. The APIs are compatible,...
Hello, I share a problem: COMMAND: k2tf -f DaemonSet.yaml ISSUE: 12:58PM Warn | could not parse file error="2 errors occurred:\n\t* could not decode yaml object with main scheme #1: yaml:...
I tried converting the following Kubernetes secret in yaml: ``` --- apiVersion: v1 kind: Secret metadata: name: someSecretName namespace: someNamespace type: Opaque stringData: ACCOUNT: someAccount KEY: someKey ``` which is...
Fix issue: https://github.com/sl1pm4t/k2tf/issues/109 Fix projected volumes Update go version to 1.22, tf-sdk to 2.33. Update cronjob (batch/v1)
Support the conversion of SealedSecrets. ```yaml apiVersion: bitnami.com/v1alpha1 kind: SealedSecret metadata: name: mysecret namespace: mynamespace spec: encryptedData: foo: AgBy3i4OJSWK+PiTySYZZA9rO43cGDEq..... ```