Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider produced inconsistent final plan #279

Open
jyothi-balla opened this issue Oct 25, 2023 · 2 comments
Open

Provider produced inconsistent final plan #279

jyothi-balla opened this issue Oct 25, 2023 · 2 comments

Comments

@jyothi-balla
Copy link

jyothi-balla commented Oct 25, 2023

kubectl_manifest gives error when we update the yaml file during terraform apply

When expanding the plan for module.aks_base_config.kubectl_manifest.store_azure_info[0] to include new values learned so far during apply, provider "registry.terraform.io/gavinbunney/kubectl" produced an invalid new value for .yaml_body_parsed: was cty.StringVal(.... This is a bug in the provider, which should be reported in the provider's own issue tracker.

Using
data "kubectl_file_documents" ..
and

resource "kubectl_manifest" "store_azure_info" {
  count      = length(split("\n---\n", file("${path.module}/manifests/ 

Kubectl provider version - 1.14.0
Terraform v1.3.5

@alekc
Copy link
Contributor

alekc commented Jan 4, 2024

A known bug due to the lack of development on this provider. Try to use this fork

terraform {
  required_providers {
    kubectl = {
      source = "alekc/kubectl"
      version = "2.0.4"
    }
  }
}

@omerfsen
Copy link

Thank you @alekc It seems it is not maintained since last 2 years. I will test yours to see it is %100 compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants