From 95386b345ad90608dabea1500778760a8a9c1d55 Mon Sep 17 00:00:00 2001 From: DeveloperDurp Date: Mon, 19 May 2025 05:53:16 -0500 Subject: [PATCH] update --- infra/crossplane/templates/tofu.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/infra/crossplane/templates/tofu.yml b/infra/crossplane/templates/tofu.yml index 2724d26..085a238 100644 --- a/infra/crossplane/templates/tofu.yml +++ b/infra/crossplane/templates/tofu.yml @@ -30,6 +30,43 @@ spec: key: kv/crossplane/proxmox property: pm_user +--- +apiVersion: opentofu.upbound.io/v1beta1 +kind: ProviderConfig +metadata: + name: default +spec: + # Note that unlike most provider configs this one supports an array of + # credentials. This is because each tofu workspace uses a single + # Crossplane provider config, but could use multiple Terraform providers each + # with their own credentials. + #credentials: + # - filename: gcp-credentials.json + # source: Secret + # secretRef: + # namespace: upbound-system + # name: opentofu-gcp-creds + # key: credentials + # This optional configuration block can be used to inject HCL into any + # workspace that uses this provider config, for example to setup Terraform + # providers. + configuration: | + + // Modules _must_ use remote state. The provider does not persist state. + terraform { + backend "kubernetes" { + secret_suffix = "providerconfig-default" + namespace = "upbound-system" + in_cluster_config = true + } + required_providers { + proxmox = { + source = "Telmate/proxmox" + version = "3.0.1-rc8" + } + } + } + --- apiVersion: opentofu.upbound.io/v1beta1 kind: Workspace