Skip to content

Commit

Permalink
fix: Update CSI Secrets Provider driver (#1538)
Browse files Browse the repository at this point in the history
  • Loading branch information
askulkarni2 committed Apr 6, 2023
1 parent 12e4395 commit d99f72c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
23 changes: 9 additions & 14 deletions modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf
Original file line number Diff line number Diff line change
@@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions modules/kubernetes-addons/secrets-store-csi-driver/locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

1 comment on commit d99f72c

@walkline
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an ETA for when this will be released?

Please sign in to comment.