Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider constraints are incompatible with the latest beta-private cluster submodule #536

Closed
clausstrommer opened this issue Nov 5, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@clausstrommer
Copy link

TL;DR

The latest beta-private-cluster submodule has the version constraint >= 5.0.0 of hashicorp/google and hashicorp/google-beta. The SQL submodules have the version constraint < 5.0.0 for those modules.

Expected behavior

Google submodules should not have mutually exclusive provider version constraints.

Observed behavior

Version constraint resolution fails with

│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider
│ hashicorp/google: no available releases match the given constraints >=
│ 3.33.0, >= 3.39.0, >= 3.43.0, >= 3.53.0, >= 3.79.0, >= 3.83.0, >= 4.0.0, >=
│ 4.18.0, >= 4.25.0, >= 4.41.0, != 4.49.0, >= 4.51.0, >= 4.64.0, >= 4.80.0,
│ >= 5.0.0, < 5.0.0, < 6.0.0
╵

╷
│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider
│ hashicorp/google-beta: no available releases match the given constraints >=
│ 3.43.0, >= 3.79.0, >= 4.64.0, >= 4.80.0, >= 5.0.0, < 5.0.0, < 6.0.0

Terraform Configuration

module "sql" {
  source  = "GoogleCloudPlatform/sql-db/google//modules/postgresql"
  version = ">= 15.0"

  (any minimal configuration you wish to use)
}

module "gke" {
  source  = "terraform-google-modules/kubernetes-engine/google//modules/beta-private-cluster"
  version = ">= 17.2"

  (any minimal configuration you wish to use)
}


### Terraform Version

```sh
1.5.x

Additional information

Published dependency versions:

@clausstrommer clausstrommer added the bug Something isn't working label Nov 5, 2023
@clausstrommer
Copy link
Author

Additional info: The version dependencies in master have been updated, but this is not reflected in the published version of the submodules.

@navilg
Copy link

navilg commented Nov 6, 2023

private-cluster module and postgresql module's google version's are conflicting. One needs hashicorp/google version >= 5.0.0 and one needs < 5.0.0.

Any workaround we can use until next release ? I see its mitigated in master branch but not yet released.

@g-awmalik
Copy link
Contributor

g-awmalik commented Nov 6, 2023

We'll be releasing upgraded modules supporting v5 soon. Please watch this PR

@g-awmalik
Copy link
Contributor

All modules should now be pulling tgp version >= 5 with v17.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants