sl1pm4t / k2tf

Kubernetes YAML to Terraform HCL converter
Mozilla Public License 2.0
1.18k stars 108 forks source link

`kubernetes_pod_security_policy.spec.supplemental_group.range` not supported #102

Open flokli opened 2 years ago

flokli commented 2 years ago

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 found in Terraform schema  field=PodSecurityPolicy.Spec.SupplementalGroups name=kubelet_serving_cert_approver type=kubernetes_pod_security_policy

If I run k2tf with --include-unsupported, I need to rename the supplemental_group block to supplemental_groups.