hashicorp / terraform-provider-kubernetes

Terraform Kubernetes provider
https://www.terraform.io/docs/providers/kubernetes/
Mozilla Public License 2.0
1.58k stars 967 forks source link

при использовании команды terraform init, происходит автоматическое скачивание провайдера с hasicorp, а мне нужна установка кастомной версии #2517

Closed ElDar717 closed 3 months ago

ElDar717 commented 3 months ago

Terraform version, Kubernetes provider version and Kubernetes version

Terraform version: v1.8.5
Kubernetes Provider version: v2.27.0
Kubernetes version: v1.30.1

Terraform configuration

terraform {
  required_providers {
    kubernetes = {
      source  = "hashicorp/kubernetes"
      version = "2.27.0" 
    }
  }
}

provider "kubernetes" {
  config_path = "C:/Users/Test/.kube/config" 
}

Question

When using the terraform init command, the provider is automatically downloaded from hashicorp, and I need to install a custom version terraform_provider_kubernetes_windows_amd64.exe. The file itself terraform_provider_kubernetes_windows_amd64.exe I put it in the Plugins folder. Help me create a configuration file and what other files need to be added. for full-fledged work. I am using terraform for the first time and therefore I have difficulties. You can describe in detail how to use your custom version terraform_provider_kubernetes_windows_amd64.exe. Thank you in advance.
alexsomesan commented 3 months ago

The provider installation process is documented here: https://developer.hashicorp.com/terraform/cli/config/config-file#provider-installation

Also, please post future issues in english so that we can be sure everyone understands exactly what the ask is.