This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Description
Terraform, Provider, Kubernetes versions
Terraform version: 0.15.0
Provider version: 0.5.0
Kubernetes version: 1.21.3
Affected Resource(s)
Terraform Configuration Files
terraform {
required_providers {
kubernetes-alpha = {
source = "hashicorp/kubernetes-alpha"
version = ">= 0.5.0"
}
}
}
provider "kubernetes-alpha" {
config_path = "~/.kube/config"
}
resource "kubernetes_manifest" "secret_example_cluster_config" {
provider = kubernetes-alpha
manifest = {
"apiVersion" = "v1"
"kind" = "Secret"
"metadata" = {
"name" = "example-cluster-config"
"namespace" = "default"
}
"stringData" = {
"foo" = "bar"
}
"type" = "Opaque"
}
}
Debug Output
Panic Output
Steps to Reproduce
terraform init & terraform apply
Expected Behavior
Secret resource definition to be not tainted and created successfully.
Actual Behavior
The error message below
Error: Provider produced inconsistent result after apply
When applying changes to kubernetes_manifest.secret_example_cluster_config, provider
"provider["registry.terraform.io/hashicorp/kubernetes-alpha"]" produced an unexpected new value: .object.stringData:
was cty.MapVal(map[string]cty.Value{"foo":cty.StringVal("bar")}), but now null.
This is a bug in the provider, which should be reported in the provider's own issue tracker.
Important Factoids
References
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