terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
While destroying the resources on terraform kubernetes provider 2.35.1, 2.27 and 2.35.0 throwing Plugin Error
Terraform Version, Provider Version and Kubernetes Version
Terraform version:
Kubernetes provider version: 2.35.1
Kubernetes version: 1.30
Affected Resource(s)
Terraform Configuration Files
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.53.0"
}
kubernetes = {
source = "hashicorp/kubernetes"
version = "2.35.1" # Adjust this version as needed
}
}
}
provider "aws" {
region = "ap-south-1"
}
data "aws_eks_cluster" "cluster" {
name = "test-eks-cluster"
}
data "aws_eks_cluster_auth" "cluster_auth" {
name = "test-eks-cluster"
}
provider "kubernetes" {
host = data.aws_eks_cluster.cluster.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.cluster.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.cluster_auth.token
}
Debug Output
Panic Output
╷ │ Error: Plugin error │ │ The plugin returned an unexpected error from │ plugin.(*GRPCProvider).ApplyResourceChange: rpc error: code = Unknown desc │ = the server has asked for the client to provide credentials ╵
Steps to Reproduce
try creating kubernetes manifest and destroy itExpected Behavior
What should have happened? expected behaviour is just destroy the reources.
Actual Behavior
What actually happened? whenever im creating resources it goes without any issue while terminating im getting plugin error.
Important Factoids
References
- GH-1234
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment