From df7011e35170e7aa39f7c9bc98d1289841d6211f Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Fri, 1 Nov 2024 02:47:08 +0100 Subject: [PATCH] Change kubectl provider Signed-off-by: Jorge Turrado --- terraform/modules/azure/aks/main.tf | 12 +----------- terraform/terraform.tf | 4 ++-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/terraform/modules/azure/aks/main.tf b/terraform/modules/azure/aks/main.tf index ac7f742..0f6b001 100644 --- a/terraform/modules/azure/aks/main.tf +++ b/terraform/modules/azure/aks/main.tf @@ -1,7 +1,7 @@ terraform { required_providers { kubectl = { - source = "gavinbunney/kubectl" + source = "alekc/kubectl" } } } @@ -376,16 +376,6 @@ TEMPLATE ## Deploy the image proxy -provider "helm" { - kubernetes { - host = azurerm_kubernetes_cluster.aks.kube_config.0.host - 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) - - } -} - provider "kubectl" { host = azurerm_kubernetes_cluster.aks.kube_config.0.host client_certificate = base64decode(azurerm_kubernetes_cluster.aks.kube_config.0.client_certificate) diff --git a/terraform/terraform.tf b/terraform/terraform.tf index 08a1709..29ec199 100644 --- a/terraform/terraform.tf +++ b/terraform/terraform.tf @@ -31,8 +31,8 @@ terraform { version = "=4.0.5" } kubectl = { - source = "gavinbunney/kubectl" - version = "1.14.0" + source = "alekc/kubectl" + version = "2.1.2" } } }