Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Inconsistent result after apply for Secret in kubernetes_manifest #257

Open
Akaame opened this issue Jul 29, 2021 · 0 comments
Open

Inconsistent result after apply for Secret in kubernetes_manifest #257

Akaame opened this issue Jul 29, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Akaame
Copy link

Akaame commented Jul 29, 2021

Terraform, Provider, Kubernetes versions

Terraform version: 0.15.0
Provider version: 0.5.0
Kubernetes version: 1.21.3

Affected Resource(s)

  • kubernetes_manifest

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

  1. 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
@Akaame Akaame added the bug Something isn't working label Jul 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant