diff --git a/templates/providers/bootstrap/aws.tf b/templates/providers/bootstrap/aws.tf index eeea059..d00c181 100644 --- a/templates/providers/bootstrap/aws.tf +++ b/templates/providers/bootstrap/aws.tf @@ -44,15 +44,15 @@ data "aws_eks_cluster_auth" "cluster" { } provider "kubernetes" { - host = module.aws.cluster.cluster_endpoint - cluster_ca_certificate = base64decode(module.aws.cluster.cluster_certificate_authority_data) - token = data.aws_eks_cluster_auth.cluster.token + host = module.mgmt.cluster.cluster_endpoint + cluster_ca_certificate = base64decode(module.mgmt.cluster.cluster_certificate_authority_data) + token = data.mgmt_eks_cluster_auth.cluster.token } provider "helm" { kubernetes { - host = module.aws.cluster.cluster_endpoint - cluster_ca_certificate = base64decode(module.aws.cluster.cluster_certificate_authority_data) - token = data.aws_eks_cluster_auth.cluster.token + host = module.mgmt.cluster.cluster_endpoint + cluster_ca_certificate = base64decode(module.mgmt.cluster.cluster_certificate_authority_data) + token = data.mgmt_eks_cluster_auth.cluster.token } } \ No newline at end of file diff --git a/templates/providers/bootstrap/azure.tf b/templates/providers/bootstrap/azure.tf index 8ef0299..84fc9f3 100644 --- a/templates/providers/bootstrap/azure.tf +++ b/templates/providers/bootstrap/azure.tf @@ -49,17 +49,17 @@ provider "azurerm" { } provider "kubernetes" { - host = module.azure.cluster.cluster_fqdn - cluster_ca_certificate = base64decode(module.azure.cluster.cluster_ca_certificate) - client_certificate = base64decode(module.azure.cluster.client_certificate) - client_key = base64decode(module.azure.cluster.client_key) + host = module.mgmt.cluster.cluster_fqdn + cluster_ca_certificate = base64decode(module.mgmt.cluster.cluster_ca_certificate) + client_certificate = base64decode(module.mgmt.cluster.client_certificate) + client_key = base64decode(module.mgmt.cluster.client_key) } provider "helm" { kubernetes { - host = module.azure.cluster.cluster_fqdn - cluster_ca_certificate = base64decode(module.azure.cluster.cluster_ca_certificate) - client_certificate = base64decode(module.azure.cluster.client_certificate) - client_key = base64decode(module.azure.cluster.client_key) + host = module.mgmt.cluster.cluster_fqdn + cluster_ca_certificate = base64decode(module.mgmt.cluster.cluster_ca_certificate) + client_certificate = base64decode(module.mgmt.cluster.client_certificate) + client_key = base64decode(module.mgmt.cluster.client_key) } } \ No newline at end of file diff --git a/templates/providers/bootstrap/gcp.tf b/templates/providers/bootstrap/gcp.tf index 4e926ed..e45c584 100644 --- a/templates/providers/bootstrap/gcp.tf +++ b/templates/providers/bootstrap/gcp.tf @@ -32,8 +32,8 @@ data "google_client_config" "default" {} provider "helm" { kubernetes { - host = module.gcp.cluster.endpoint - cluster_ca_certificate = base64decode(module.gcp.cluster.ca_certificate) + host = module.mgmt.cluster.endpoint + cluster_ca_certificate = base64decode(module.mgmt.cluster.ca_certificate) token = data.google_client_config.current.access_token } } \ No newline at end of file