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

NodeTaintsPolicy broken in TopologySpreadConstraint #2490

Closed
tzasacky opened this issue May 14, 2024 · 0 comments
Closed

NodeTaintsPolicy broken in TopologySpreadConstraint #2490

tzasacky opened this issue May 14, 2024 · 0 comments

Comments

@tzasacky
Copy link
Contributor

tzasacky commented May 14, 2024

PR to fix: #2491

Terraform Version, Provider Version and Kubernetes Version

Terraform version: 1.4.5
Kubernetes provider version: 2.30.0
Kubernetes version: n/a

Panic Output

goroutine 272 [running]:
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.flattenTopologySpreadConstraints({0xc001bc2000?, 0x1, 0x2dd45f1?})
        github.com/hashicorp/terraform-provider-kubernetes/kubernetes/structures_pod.go:346 +0x325
github.com/hashicorp/terraform-provider-kubernetes/kubernetes.flattenPodSpec({{0xc00126f400, 0x2, 0x4}, {0x0, 0x0, 0x0}, {0xc0001e4c00, 0x1, 0x4}, {0x0, ...}, ...})       
Error: The terraform-provider-kubernetes_v2.30.0_x5 plugin crashed!

Steps to Reproduce

  1. Define a spec with TopologySpreadConstraint, which provides NodeTaintsPolicy and not NodeAffinityPolicy
  2. terraform apply
  3. Panic

Expected Behavior

What should have happened?

Actual Behavior

What actually happened?

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants