hierarchical-namespaces
hierarchical-namespaces copied to clipboard
convert manifest to tf using tfk8s
I like to use terraform by converting my k8 manifests to terraform using https://github.com/jrhouston/tfk8s. This is what terraform recommends here - https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/manifest#importing-existing-kubernetes-resources-as-kubernetes_manifest
I download the manifest file from https://github.com/kubernetes-sigs/hierarchical-namespaces/releases/download/v1.1.0/default.yaml then I convert it. There are some status sections that are causing an error because TF will not allow the presence of status blocks in resource definitions,
Specifically, the status blocks in the Custom Resource Definitions for hierarchicalresourcequotas.hnc.x-k8s.io hierarchyconfigurations.hnc.x-k8s.io hncconfigurations.hnc.x-k8s.io subnamespaceanchors.hnc.x-k8s.io
Is there any special reason the high-level status blocks are there (the "status" section in the properties section of the openAPIV3Schema are not causing any issue - just the ones at the top level) ?