Added tofu provider config

This commit is contained in:
GeorgeRaven
2025-07-12 19:09:43 +01:00
parent b860198c83
commit fa178cb4d1

View File

@@ -0,0 +1,33 @@
apiVersion: opentofu.upbound.io/v1beta1
kind: ProviderConfig
metadata:
name: opentofu
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: |
// provider "google" {
// credentials = "gcp-credentials.json"
// project = "YOUR-GCP-PROJECT-ID"
// }
// Modules _must_ use remote state. The provider does not persist state.
terraform {
backend "kubernetes" {
secret_suffix = "providerconfig-opentofu"
namespace = "crossplane"
in_cluster_config = true
}
}