Skip to content

Prio #2793

@magzim21

Description

@magzim21

Terraform Version, Provider Version and Kubernetes Version

Terraform version: 1.13.3
Kubernetes provider version: v2.37.1
Kubernetes version: v1.33.4-eks-e386d34

Affected Resource(s)

  • kubernetes_manifest

Terraform Configuration Files

resource "kubernetes_manifest" "low_priority_class" {
  provider = kubernetes.human_risk
  manifest = {
    apiVersion = "scheduling.k8s.io/v1"
    kind       = "PriorityClass"
    metadata = {
      name = "low-priority"
    }
    value         = 50
    # globalDefault = false # Fails when uncommented
    description   = "This is the global default PriorityClass with a relativaly low value."
  }
}


# But this works
resource "kubernetes_manifest" "standard_priority_class" {
  provider = kubernetes.human_risk
  manifest = {
    apiVersion = "scheduling.k8s.io/v1"
    kind       = "PriorityClass"
    metadata = {
      name = "global-priority"
    }
    value         = 100
    globalDefault = true
    description   = "This is the global default PriorityClass with an arbitrary, but not zero value."
  }
}

Error message

│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to kubernetes_manifest.high_priority_class, provider "provider[\"registry.terraform.io/hashicorp/kubernetes\"].human_risk" produced an unexpected new value: .object.globalDefault: was cty.False, but now null.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions