From fecb0e079e2194985d6940283809e72c67eafbe7 Mon Sep 17 00:00:00 2001 From: Tobias Babin <140624220+TobiasBabin@users.noreply.github.com> Date: Mon, 9 Sep 2024 15:12:06 +0200 Subject: [PATCH] Update generated example library content (#75) --- .../namespace/short-namespace.tf | 30 +++++++++++ .../tls-cert/certificate-crd.tf | 50 +++++++++++++++++++ .../wildcard-dns/dns-template.tf | 13 +++++ 3 files changed, 93 insertions(+) create mode 100644 resource-definitions/template-driver/namespace/short-namespace.tf create mode 100644 resource-definitions/template-driver/tls-cert/certificate-crd.tf create mode 100644 resource-definitions/wildcard-dns/dns-template.tf diff --git a/resource-definitions/template-driver/namespace/short-namespace.tf b/resource-definitions/template-driver/namespace/short-namespace.tf new file mode 100644 index 0000000..328a767 --- /dev/null +++ b/resource-definitions/template-driver/namespace/short-namespace.tf @@ -0,0 +1,30 @@ +resource "humanitec_resource_definition" "custom-namespace" { + driver_type = "humanitec/template" + id = "custom-namespace" + name = "custom-namespace" + type = "k8s-namespace" + driver_inputs = { + values_string = jsonencode({ + "templates" = { + "init" = "name: {{ trunc 8 \"$${context.env.id}\" }}-{{ trunc 8 \"$${context.app.id}\" }}\n" + "manifests" = <