From d99f72cc467f9fc1a8a720d24ca7dae253af3ff7 Mon Sep 17 00:00:00 2001 From: Apoorva Kulkarni Date: Wed, 5 Apr 2023 21:07:56 -0700 Subject: [PATCH] fix: Update CSI Secrets Provider driver (#1538) --- .../csi-secrets-store-provider-aws/main.tf | 23 ++++++++----------- .../secrets-store-csi-driver/locals.tf | 4 ++-- 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf b/modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf index 3af5f29910..885ab7d50e 100644 --- a/modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf +++ b/modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf @@ -1,26 +1,21 @@ locals { - name = try(var.helm_config.name, "csi-secrets-store-provider-aws") + name = try(var.helm_config.name, "secrets-store-csi-driver-provider-aws") namespace = try(var.helm_config.namespace, "kube-system") } -resource "kubernetes_namespace_v1" "csi_secrets_store_provider_aws" { - metadata { - name = local.namespace - } -} - module "helm_addon" { source = "../helm-addon" - # https://github.com/aws/eks-charts/blob/master/stable/csi-secrets-store-provider-aws/Chart.yaml + # https://github.com/aws/secrets-store-csi-driver-provider-aws/blob/main/charts/secrets-store-csi-driver-provider-aws/Chart.yaml helm_config = merge( { - name = local.name - chart = local.name - repository = "https://aws.github.io/eks-charts" - version = "0.0.3" - namespace = kubernetes_namespace_v1.csi_secrets_store_provider_aws.metadata[0].name - description = "A Helm chart to install the Secrets Store CSI Driver and the AWS Key Management Service Provider inside a Kubernetes cluster." + name = local.name + chart = local.name + repository = "https://aws.github.io/secrets-store-csi-driver-provider-aws" + version = "0.3.2" + namespace = local.namespace + create_namespace = local.namespace == "kube-system" ? false : true + description = "A Helm chart for the AWS Secrets Manager and Config Provider for Secret Store CSI Driver." }, var.helm_config ) diff --git a/modules/kubernetes-addons/secrets-store-csi-driver/locals.tf b/modules/kubernetes-addons/secrets-store-csi-driver/locals.tf index fe7b6a6771..e1fc7ea07c 100644 --- a/modules/kubernetes-addons/secrets-store-csi-driver/locals.tf +++ b/modules/kubernetes-addons/secrets-store-csi-driver/locals.tf @@ -3,10 +3,10 @@ locals { # https://github.com/kubernetes-sigs/secrets-store-csi-driver/blob/main/charts/secrets-store-csi-driver/Chart.yaml default_helm_config = { - name = local.name + name = "csi-secrets-store" chart = local.name repository = "https://kubernetes-sigs.github.io/secrets-store-csi-driver/charts" - version = "1.2.4" + version = "1.3.1" namespace = local.name description = "A Helm chart to install the Secrets Store CSI Driver" }