terraform-provider-kubernetes: kubernetes_secret produces inconsistent final plan
When creating a kubernetes_secret with mutltiple file on the first run then Terraform throws the following error:
Error: Provider produced inconsistent final plan
When expanding the plan for kubernetes_secret.tls_secret to include new values
learned so far during apply, provider "registry.terraform.io/-/kubernetes"
produced an invalid new value for .data: inconsistent values for sensitive
attribute.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
Terraform Version
Terraform: v0.12.20 K8s provider version: v1.11.1
Affected Resource(s)
- kubernetes_secret
Terraform Configuration Files
resource "kubernetes_secret" "tls_secret" {
type = "kubernetes.io/tls"
metadata {
name = var.tls_secret_name
}
data = {
"tls.crt" = file("${path.module}/resources/gcp.crt")
"tls.key" = file("${path.module}/resources/gcp.key")
}
}
Expected Behavior
Resource should create without throwing an error
Actual Behavior
First run produces the following error:
Error: Provider produced inconsistent final plan
When expanding the plan for kubernetes_secret.tls_secret to include new values
learned so far during apply, provider "registry.terraform.io/-/kubernetes"
produced an invalid new value for .data: inconsistent values for sensitive
attribute.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.
This issue goes away on the second run
Steps to Reproduce
terraform initterraform plan -out=test.planterraform apply
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 16
- Comments: 19
Running into the same issue w/ following simple secret creation
First time, it got made fine, and having this error on subsequent runs.