* scheme update
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
apiVersion: opentofu.m.upbound.io/v1beta1
|
||||
kind: ProviderConfig
|
||||
metadata:
|
||||
name: gitea-tofu-config
|
||||
namespace: crossplane-system
|
||||
spec:
|
||||
configuration: |
|
||||
terraform {
|
||||
required_providers {
|
||||
gitea = {
|
||||
source = "go-gitea/gitea"
|
||||
version = "~> 0.20.0"
|
||||
}
|
||||
}
|
||||
|
||||
// Modules _must_ use remote state. The provider does not persist state.
|
||||
backend "kubernetes" {
|
||||
secret_suffix = "providerconfig-gitea"
|
||||
namespace = "crossplane-system"
|
||||
in_cluster_config = true
|
||||
}
|
||||
}
|
||||
|
||||
provider "gitea" {
|
||||
base_url = var.gitea_url
|
||||
token = var.gitea_token
|
||||
}
|
||||
|
||||
variable "gitea_url" {
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "gitea_token" {
|
||||
type = string
|
||||
sensitive = true
|
||||
}
|
||||
pluginCache: true
|
||||
credentials:
|
||||
- filename: .tofurc
|
||||
source: Secret
|
||||
secretRef:
|
||||
name: gitea-provider-creds
|
||||
namespace: crossplane-system
|
||||
key: credentials
|
||||
Reference in New Issue
Block a user