gavinbunney / terraform-provider-kubectl

Terraform provider to handle raw kubernetes manifest yaml files
https://registry.terraform.io/providers/gavinbunney/kubectl
Mozilla Public License 2.0
612 stars 105 forks source link

Terraform init throws openpgp: key expired #297

Open gmcgoldrick-r7 opened 1 month ago

gmcgoldrick-r7 commented 1 month ago

Hi I'm getting this error when doing a terraform init:

Error while installing gavinbunney/kubectl v1.14.0: error checking signature: openpgp: key expired

Terraform code is:

terraform {
  required_providers {
    kubectl = {
      source  = "gavinbunney/kubectl"
      version = ">= 1.7.0"
    }
  }
}

Any ideas what this could be? Thanks

alekc commented 1 month ago

Expired PGP key has been used for publishing kubectl provider. Unlikely will be fixed at any point

On Tue, 13 Aug 2024, 16:27 Glenn McGoldrick, @.***> wrote:

Hi I'm getting this error when doing a terraform init:

Error while installing gavinbunney/kubectl v1.14.0: error checking signature: openpgp: key expired

Terraform code is:

terraform { required_providers { kubectl = { source = "gavinbunney/kubectl" version = ">= 1.7.0" } } }

Any ideas what this could be? Thanks

— Reply to this email directly, view it on GitHub https://github.com/gavinbunney/terraform-provider-kubectl/issues/297, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACJ5VZ5P5OTDN4VPDYV5ITZRIQWFAVCNFSM6AAAAABMOQVUDSVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ3DGNRTGMZTSOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

gmcgoldrick-r7 commented 1 month ago

Thanks for the reply, switched to your provider!

yunfeng-scale commented 1 month ago

just updating the provider is not enough in my case since it still shows in terraform providers as required by state. terraform state replace-provider gavinbunney/kubectl alekc/kubectl seems to fix it.

gmcgoldrick-r7 commented 1 month ago

just updating the provider is not enough in my case since it still shows in terraform providers as required by state. terraform state replace-provider gavinbunney/kubectl alekc/kubectl seems to fix it.

Yes, I had to do this also

divyangjp commented 4 weeks ago

Tagging @gavinbunney

Bharathkumarraju commented 1 week ago

Thanks @alekc your provider looks fine for me

- Installing alekc/kubectl v2.0.4...
- Installed alekc/kubectl v2.0.4 (self-signed, key ID 772FB27A86DAFCE7)
    kubectl = {
      source  = "alekc/kubectl"
      version = ">= 2.0.0"
    }