Skip to content

Commit

Permalink
Fix module naming in provider defs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Dec 30, 2023
1 parent 488ba06 commit aeb7bb1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions templates/providers/bootstrap/aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
16 changes: 8 additions & 8 deletions templates/providers/bootstrap/azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
4 changes: 2 additions & 2 deletions templates/providers/bootstrap/gcp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit aeb7bb1

Please sign in to comment.