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

Update module to use google provider >=6 #202

Open
a88zach opened this issue Dec 16, 2024 · 0 comments
Open

Update module to use google provider >=6 #202

a88zach opened this issue Dec 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@a88zach
Copy link

a88zach commented Dec 16, 2024

TL;DR

This PR should be merged and a new version created so that users can use google provider version >=6

Ideally, the version would be bumped to v35 first

Expected behavior

Cannot use gh-runner-gke with version >=6 of google provider

Observed behavior

Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/google: locked provider registry.terraform.io/hashicorp/google 6.13.0 does not match configured version constraint >= 4.3.0,
│ >= 5.40.0, < 6.0.0, 6.13.0, < 7.0.0; must use terraform init -upgrade to allow selection of new versions
│ 
│ To see which modules are currently depending on hashicorp/google and what versions are specified, run the following command:
│     terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/google] 6.13.0
└── module.runner-gke
    ├── provider[registry.terraform.io/hashicorp/helm] >= 2.0.0
    ├── provider[registry.terraform.io/hashicorp/google] >= 4.3.0, < 7.0.0
    ├── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.0
    └── module.runner-cluster
        ├── provider[registry.terraform.io/hashicorp/random] >= 2.1.0
        ├── provider[registry.terraform.io/hashicorp/google] >= 5.40.0, < 6.0.0
        ├── provider[registry.terraform.io/hashicorp/google-beta] >= 5.40.0, < 6.0.0
        └── provider[registry.terraform.io/hashicorp/kubernetes] ~> 2.10

Terraform Configuration

terraform {
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "6.13.0"
    }
  }

  required_version = "1.10.2"
}

provider "google" {
}

module "runner-gke" {
  source  = "terraform-google-modules/github-actions-runners/google//modules/gh-runner-gke"
  version = "4.0.0"

  project_id             = "*****"
  create_network         = true
  cluster_suffix         = "k8s"
  gh_app_id              = var.gh_app_id
  gh_app_installation_id = var.gh_app_installation_id
  gh_app_private_key     = var.gh_app_private_key
  gh_config_url          = var.gh_config_url
}


### Terraform Version

```sh
1.10.2

Additional information

No response

@a88zach a88zach added the bug Something isn't working label Dec 16, 2024
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

2 participants
@a88zach and others