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

PriorityClass globalDefault #256

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

PriorityClass globalDefault #256

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

Comments

@Akaame
Copy link

Akaame commented Jul 28, 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" "priorityclass_vitess_operator_control_plane" {
  provider = kubernetes-alpha

  manifest = {
    "apiVersion"    = "scheduling.k8s.io/v1beta1"
    "description"   = "The vitess-operator control plane."
    "globalDefault" = false
    "kind"          = "PriorityClass"
    "metadata" = {
      "name" = "vitess-operator-control-plane"
    }
    "value" = 5000
  }
}

Debug Output

Panic Output

Steps to Reproduce

  1. terraform init & terraform apply

Expected Behavior

PriorityClass 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.priorityclass_vitess_operator_control_plane, provider
"provider["registry.terraform.io/hashicorp/kubernetes-alpha"]" produced an unexpected new value: .object.globalDefault: > was cty.False, but now null

Important Factoids

Deleting the line

"globalDefault" = false

makes it work.

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 28, 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