Skip to content

Commit

Permalink
fix(anthos-attached-clusters): add providers and lint (#692)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored Aug 28, 2024
1 parent ef3baae commit 393d625
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 13 deletions.
15 changes: 6 additions & 9 deletions anthos-attached-clusters/aks/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ locals {
}
}

data "azurerm_subscription" "current" {
}

resource "azurerm_resource_group" "aks" {
name = "${var.name_prefix}-rg"
location = var.azure_region
Expand Down Expand Up @@ -59,12 +56,12 @@ data "google_project" "project" {
provider "helm" {
alias = "bootstrap_installer"
kubernetes {
host = azurerm_kubernetes_cluster.aks.kube_config.0.host
username = azurerm_kubernetes_cluster.aks.kube_config.0.username
password = azurerm_kubernetes_cluster.aks.kube_config.0.password
client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.cluster_ca_certificate)
host = azurerm_kubernetes_cluster.aks.kube_config[0].host
username = azurerm_kubernetes_cluster.aks.kube_config[0].username
password = azurerm_kubernetes_cluster.aks.kube_config[0].password
client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config[0].client_certificate)
client_key = base64decode(azurerm_kubernetes_cluster.aks.kube_config[0].client_key)
cluster_ca_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config[0].cluster_ca_certificate)
}
}

Expand Down
3 changes: 2 additions & 1 deletion anthos-attached-clusters/aks/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ terraform {
version = ">=5.0.0"
}
helm = {
source = "hashicorp/helm"
source = "hashicorp/helm"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
Expand Down
3 changes: 2 additions & 1 deletion anthos-attached-clusters/eks/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ terraform {
version = ">=5.0.0"
}
helm = {
source = "hashicorp/helm"
source = "hashicorp/helm"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
Expand Down
4 changes: 3 additions & 1 deletion anthos-attached-clusters/kind/oidc/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@
terraform {
required_providers {
http-full = {
source = "salrashid123/http-full"
source = "salrashid123/http-full"
version = "~> 1.3"
}
}
required_version = ">= 0.13"
}

12 changes: 11 additions & 1 deletion anthos-attached-clusters/kind/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@
terraform {
required_providers {
kind = {
source = "tehcyx/kind"
source = "tehcyx/kind"
version = "~> 0.6"
}
google = {
source = "hashicorp/google"
version = "~> 5.0"
}
helm = {
source = "hashicorp/helm"
version = "~> 2.0"
}
}
required_version = ">= 0.13"
}

Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ terraform {
source = "hashicorp/helm"
version = ">=2.13.1"
}
local = {
source = "hashicorp/local"
version = "~> 2.2"
}
}
required_version = ">= 0.13"
}

0 comments on commit 393d625

Please sign in to comment.