-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathproviders.tf
More file actions
45 lines (42 loc) · 1.49 KB
/
Copy pathproviders.tf
File metadata and controls
45 lines (42 loc) · 1.49 KB
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
35
36
37
38
39
40
41
42
43
44
45
terraform {
required_providers {
github = {
source = "integrations/github"
version = "6.13.0"
}
helm = {
source = "hashicorp/helm"
version = ">= 2.12"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "3.2.1"
}
talos = {
source = "siderolabs/talos"
version = "0.12.0-beta.0"
}
}
}
provider "github" {
owner = var.github_org
token = var.github_token
}
provider "helm" {
kubernetes = {
host = talos_cluster_kubeconfig.this.kubernetes_client_configuration.host
client_certificate = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.client_certificate)
client_key = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.client_key)
cluster_ca_certificate = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.ca_certificate)
}
}
provider "kubernetes" {
host = talos_cluster_kubeconfig.this.kubernetes_client_configuration.host
client_certificate = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.client_certificate)
client_key = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.client_key)
cluster_ca_certificate = base64decode(talos_cluster_kubeconfig.this.kubernetes_client_configuration.ca_certificate)
ignore_labels = [
"app.kubernetes.io/.*",
"kustomize.toolkit.fluxcd.io/.*",
]
}