bouwroute-devops/infra/clusters/management/helm.tf

15 lines
1.0 KiB
HCL

provider "kubernetes" {
host = yamldecode(data.minio_s3_object.k8s_yaml.content).clusters[0].cluster.server
client_certificate = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).users[0].user.client-certificate-data)
client_key = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).users[0].user.client-key-data)
cluster_ca_certificate = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).clusters[0].cluster.certificate-authority-data)
}
provider "helm" {
kubernetes {
host = yamldecode(data.minio_s3_object.k8s_yaml.content).clusters[0].cluster.server
client_certificate = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).users[0].user.client-certificate-data)
client_key = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).users[0].user.client-key-data)
cluster_ca_certificate = base64decode(yamldecode(data.minio_s3_object.k8s_yaml.content).clusters[0].cluster.certificate-authority-data)
}
}