-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
TL;DR
The hashicorp/google provider version was upgraded to v7.x in 38.1.0 for all modules, but the workload_identity module depends on https://github.com/TerraformFoundation/terraform-google-gcloud, which is locked below v7.
Expected behavior
I expected to be able to init the terraform with google providers appropriately set to v7.
Observed behavior
Version conflict when setting my provider to v7:
├── module.workload-identity
│ ├── provider[registry.terraform.io/hashicorp/google] >= 5.12.0, < 8.0.0
│ ├── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.13
│ └── module.annotate-sa
│ ├── provider[registry.terraform.io/hashicorp/google] >= 3.53.0, < 7.0.0
│ └── module.gcloud_kubectl
│ ├── provider[registry.terraform.io/hashicorp/null] >= 2.1.0
│ ├── provider[registry.terraform.io/hashicorp/google] >= 3.53.0, < 7.0.0
│ ├── provider[registry.terraform.io/hashicorp/external] >= 2.2.2
│ └── provider[registry.terraform.io/hashicorp/random] >= 2.1.0
Terraform Configuration
module "workload-identity" {
for_each = local.service_accounts
source = "terraform-google-modules/kubernetes-engine/google//modules/workload-identity"
name = each.key
namespace = lookup(each.value, "namespace", "default")
project_id = var.project_id
roles = lookup(each.value, "roles", [])
depends_on = [module.standard_namespaces]
}
these two are now in conflict.Terraform Version
1.13.2-1Terraform Provider Versions
├── module.workload-identity
│ ├── provider[registry.terraform.io/hashicorp/google] **>= 5.12.0, < 8.0.0**
│ ├── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.13
│ └── module.annotate-sa
│ ├── provider[registry.terraform.io/hashicorp/google] >= 3.53.0, < 7.0.0
│ └── module.gcloud_kubectl
│ ├── provider[registry.terraform.io/hashicorp/null] >= 2.1.0
│ ├── provider[registry.terraform.io/hashicorp/google] **>= 3.53.0, < 7.0.0**
│ ├── provider[registry.terraform.io/hashicorp/external] >= 2.2.2
│ └── provider[registry.terraform.io/hashicorp/random] >= 2.1.0Additional information
No response