Enabling both secrets_store_csi_driver and secrets_store_csi_driver_provider_aws results in error ClusterRole secretproviderclasses-admin-role already exist #31
Labels
bug
Something isn't working
Description
When following https://aws-ia.github.io/terraform-aws-eks-blueprints/v4.5.0/add-ons/csi-secrets-store-provider-aws/ instructions, or just using the suggested way :
The apply of the terraform fails for a duplicate role in the cluster for
secretprovidercalsses-admin-role
, which belongs to secrets-store-csi-driverVersions
Module version [Required]:
v4.14.0
Terraform version:
Terraform v1.2.7
on linux_amd64
Provider version(s):
Reproduction Code [Required]
Steps to reproduce the behavior:
In both, with or without, different codes (terraform and terragrunt) YesInlcude the above when installing the addons
and execute terraform/terragrunt apply
Expected behaviour
Both Helm deployed successfully
Actual behaviour
Error occurs for secrets_store_csi_driver_provider_aws addon
Terminal Output Screenshot(s)
Missing the output, the error says that ClusterRole
secretproviderclasses-admin-role
already exists, Duplicates are not allowed.Additional context
When investigating such behavior, and following the helm charts, I ended up with
And the Chart.yaml from eks-charts for csi-secrets-store-provider-aws,
https://github.com/aws/eks-charts/blob/master/stable/csi-secrets-store-provider-aws/Chart.yaml
has the following dependency:
Additional information should be provided either for the https://aws-ia.github.io/terraform-aws-eks-blueprints/v4.5.0/add-ons/csi-secrets-store-provider-aws/ instructions, since enabling only
enable_secrets_store_csi_driver_provider_aws = true
will result in both charts installed.The https://github.com/aws/eks-charts/blob/master/stable/csi-secrets-store-provider-aws does explain some stuff, but from the addons it's not clear.
Additionally, some documentation point to https://github.com/aws/secrets-store-csi-driver-provider-aws, which yet another repo for the aws's csi provider, another location for a chart, which doesn't include this dependency for secrets-store-csi-driver.
According to the addon main.tf: https://github.com/aws-ia/terraform-aws-eks-blueprints/blob/main/modules/kubernetes-addons/csi-secrets-store-provider-aws/main.tf
it points to eks-charts location:
The description of it is ok.
The text was updated successfully, but these errors were encountered: