terraform-hcloud-kube-hetzner icon indicating copy to clipboard operation
terraform-hcloud-kube-hetzner copied to clipboard

Add recursive user manifests

Open markusheinemann opened this issue 1 year ago • 4 comments

see #1313

How to Test

  1. Create the following files inside of extra-manifests:

kustomization.yaml.tpl

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
  - subfolder

subfolder/kustomization.yaml.tpl

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

resources:
  - namespace.yaml

subfolder/namespace.yaml.tpl

apiVersion: v1
kind: Namespace
metadata:
  name: mynamespace
  1. Create a cluster using terrafom apply

  2. Check if the resource has been applied: kubectl get ns

--> It work's on my machine 🤣

markusheinemann avatar Apr 08 '24 17:04 markusheinemann

@markusheinemann Thanks for this. Looking good. Please if you could tweak the docs for this, especially in the examples section in the readme and other relevant places (if this is mentioned there, like kube.tf), it would be great.

I have updated the related docs and updated the examples as well. I am happy about your feedback.

markusheinemann avatar Apr 09 '24 07:04 markusheinemann

Actual the provided solution will not work due to https://github.com/hashicorp/terraform/issues/16330. I'm currently looking for a workaround

markusheinemann avatar Apr 11 '24 09:04 markusheinemann

@markusheinemann What about now?

mysticaltech avatar May 01 '24 08:05 mysticaltech

lgtm. I think the PR can be merged in my eyes. Can you please rerun the workflow?

PS. Sorry for closing the PR due to an oversight

markusheinemann avatar May 02 '24 08:05 markusheinemann

Thanks again for this @markusheinemann, awesome!

mysticaltech avatar May 21 '24 17:05 mysticaltech