-
Notifications
You must be signed in to change notification settings - Fork 1
/
providers.tf
34 lines (27 loc) · 1008 Bytes
/
providers.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
terraform {
required_providers {
kind = { source = "kyma-incubator/kind", version = ">= 0.0" }
flux = { source = "fluxcd/flux", version = ">= 0.11" }
kubernetes = { source = "hashicorp/kubernetes", version = ">= 2.8" }
kubectl = { source = "gavinbunney/kubectl", version = ">= 1.13" }
}
required_version = ">= 1.0"
}
provider "kind" {}
provider "flux" {}
provider "kubernetes" {
host = kind_cluster.rbac.endpoint
client_certificate = kind_cluster.rbac.client_certificate
client_key = kind_cluster.rbac.client_key
cluster_ca_certificate = kind_cluster.rbac.cluster_ca_certificate
}
provider "kubectl" {
host = kind_cluster.rbac.endpoint
client_certificate = kind_cluster.rbac.client_certificate
client_key = kind_cluster.rbac.client_key
cluster_ca_certificate = kind_cluster.rbac.cluster_ca_certificate
load_config_file = false
}
data "kubectl_server_version" "current" {
depends_on = [kind_cluster.rbac]
}