Skip to content

Commit

Permalink
Correct PodAntiAffinity typing
Browse files Browse the repository at this point in the history
Prior to this commit, Statefulset.PodAntiAffinity was incorrectly typed
as a `corev1.PodAntiAffinity`. Despite the seemingly correct naming,
this is not the type expected by the helm chart nor the documented type.

This commit corrects the typing to use the `PodAntiAffinity` struct,
which was vexingly defined but not utilized.
  • Loading branch information
chrisseto committed Jun 21, 2024
1 parent 9aaa753 commit 56c8f66
Show file tree
Hide file tree
Showing 2 changed files with 448 additions and 1,094 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ type Statefulset struct {
// Defines Pod affinity rules to influence the scheduling and placement of Pods relative to other Pods.
PodAffinity *corev1.PodAffinity `json:"podAffinity,omitempty"`
// Defines Pod anti-affinity rules to prevent Pods from being scheduled together on the same node.
PodAntiAffinity *corev1.PodAntiAffinity `json:"podAntiAffinity,omitempty"`
PodAntiAffinity *PodAntiAffinity `json:"podAntiAffinity,omitempty"`
// Defines the priority class name to assign priority levels to the Pods, influencing their scheduling order.
PriorityClassName *string `json:"priorityClassName,omitempty"`
// Defines readiness probes to determine when a Pod is ready to handle traffic.
Expand Down
Loading

0 comments on commit 56c8f66

Please sign in to comment.