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

Incompatible provider version - not supporting Mac M1 darwin_arm64 #214

Open
robertgartman opened this issue Mar 4, 2022 · 2 comments
Open

Comments

@robertgartman
Copy link

robertgartman commented Mar 4, 2022

Wanted
Execute Terraform deploy of as part of following "Setup Jenkins X on Google Cloud with GKE". The cloned infrastructure repo has a dependency on this repo.

Result
Stuck in terraform init due to lack of support for Mac M1 architecture darwin_arm64.

A quick test modifying the main.tf like this...

remove obsolete (?) provider template
provider kubernetes "~>1.11.0" ==> "~>2.8.0"
provider helm "~>1.3.0" ==> "~>2.4.1"

... makes the terraform init succeed, though terraform plan fails.

Environment

  • jx: 3.2.256
  • terraform: v1.1.7, darwin_arm64
  • jenkins-x/terraform-google-jx: v1.10.11
  • macOs Monterey, 12.1

Output from terraform init

Upgrading modules...
Downloading git::https://github.com/jenkins-x/terraform-google-jx.git?ref=v1.10.11 for jx...
- jx in .terraform/modules/jx
- jx.backup in .terraform/modules/jx/modules/backup
- jx.cluster in .terraform/modules/jx/modules/cluster
Downloading git::https://github.com/jenkins-x/terraform-jx-health.git?ref=main for jx.cluster.jx-health...
- jx.cluster.jx-health in .terraform/modules/jx.cluster.jx-health
- jx.dns in .terraform/modules/jx/modules/dns
- jx.gsm in .terraform/modules/jx/modules/gsm
- jx.jx-boot in .terraform/modules/jx/modules/jx-boot
- jx.vault in .terraform/modules/jx/modules/vault

Initializing the backend...

Initializing provider plugins...
- Finding hashicorp/local versions matching ">= 1.2.0"...
- Finding hashicorp/null versions matching ">= 2.1.0"...
- Finding hashicorp/template versions matching ">= 2.1.0"...
- Finding hashicorp/google versions matching ">= 3.46.0, < 4.0.0"...
- Finding hashicorp/random versions matching ">= 2.2.0"...
- Finding hashicorp/kubernetes versions matching "~> 1.11.0"...
- Finding hashicorp/helm versions matching "~> 1.3.0"...
- Finding hashicorp/google-beta versions matching ">= 3.46.0, < 4.0.0"...
- Using previously-installed hashicorp/local v2.1.0
- Using previously-installed hashicorp/null v3.1.0
- Using previously-installed hashicorp/google v3.90.1
- Using previously-installed hashicorp/random v3.1.0
- Using previously-installed hashicorp/google-beta v3.90.1
╷
│ Warning: Version constraints inside provider configuration blocks are deprecated
│ 
│   on .terraform/modules/jx/main.tf line 15, in provider "google":
│   15:   version = ">= 3.46.0, < 4.0.0"
│ 
│ Terraform 0.13 and earlier allowed provider version constraints inside the provider configuration block, but that is now deprecated and will be removed in a
│ future version of Terraform. To silence this warning, move the provider version constraint into the required_providers block.
│ 
│ (and 7 more similar warnings elsewhere)
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/template v2.2.0 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/kubernetes v1.11.4 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.
╵

╷
│ Error: Incompatible provider version
│ 
│ Provider registry.terraform.io/hashicorp/helm v1.3.2 does not have a package available for your current platform, darwin_arm64.
│ 
│ Provider releases are separate from Terraform CLI releases, so not all providers are available for all platforms. Other versions of this provider may have
│ different platforms supported.
@pmanlukas
Copy link

I run into similar issues on my M1Pro MBP16 when using the tutorial from the linux foundation course on Jenkins X.

@ankitm123
Copy link
Member

Provider registry.terraform.io/hashicorp/helm v1.3.2 does not have a package available for your current platform, darwin_arm64.

Seems like we are on old versions of the provider, so we need to upgrade, and then we should have arm binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants