Skip to content

Commit

Permalink
Add providers configuration for kind-crossplane setup
Browse files Browse the repository at this point in the history
  • Loading branch information
angelokurtis committed Dec 11, 2024
1 parent 199ce06 commit b799cb2
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions kind-crossplane/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
terraform {
required_providers {
kind = { source = "tehcyx/kind", version = ">= 0.2.1, < 0.3.0" }
kubernetes = { source = "hashicorp/kubernetes", version = ">= 2.25.1, < 4.0.0" }
helm = { source = "hashicorp/helm", version = ">= 2.12.1, < 3.0.0" }
kubectl = { source = "alekc/kubectl", version = ">= 2.0.4, < 3.0.0" }
null = { source = "hashicorp/null", version = ">= 3.2.2, < 4.0.0" }
}
required_version = ">= 1.0"
}

provider "kind" {}

provider "kubernetes" {
host = kind_cluster.crossplane.endpoint

client_certificate = kind_cluster.crossplane.client_certificate
client_key = kind_cluster.crossplane.client_key
cluster_ca_certificate = kind_cluster.crossplane.cluster_ca_certificate
}

provider "helm" {
kubernetes {
host = kind_cluster.crossplane.endpoint

client_certificate = kind_cluster.crossplane.client_certificate
client_key = kind_cluster.crossplane.client_key
cluster_ca_certificate = kind_cluster.crossplane.cluster_ca_certificate
}
}


provider "kubectl" {
host = kind_cluster.crossplane.endpoint

client_certificate = kind_cluster.crossplane.client_certificate
client_key = kind_cluster.crossplane.client_key
cluster_ca_certificate = kind_cluster.crossplane.cluster_ca_certificate
load_config_file = false
}

0 comments on commit b799cb2

Please sign in to comment.