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 1d58db3 commit ff0c0c1
Show file tree
Hide file tree
Showing 3 changed files with 449 additions and 1,095 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
2 changes: 1 addition & 1 deletion src/go/k8s/api/redpanda/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ff0c0c1

Please sign in to comment.