This repository was archived by the owner on Aug 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
PriorityClass globalDefault #256
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working