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

Discrepancies in TopologySpreadConstraints in operator & helmChart #123

Closed
Kavinraja-G opened this issue Apr 23, 2024 · 0 comments · Fixed by #164
Closed

Discrepancies in TopologySpreadConstraints in operator & helmChart #123

Kavinraja-G opened this issue Apr 23, 2024 · 0 comments · Fixed by #164

Comments

@Kavinraja-G
Copy link

Kavinraja-G commented Apr 23, 2024

Looks like operator accepts the topologySpreadConstraint for statefulset as object whereas helmChart accepts as array for the same field.

From operator --

➜ kubectl explain redpanda.spec.clusterSpec.statefulset.topologySpreadConstraints
GROUP:      cluster.redpanda.com
KIND:       Redpanda
VERSION:    v1alpha1

FIELD: topologySpreadConstraints <Object>

DESCRIPTION:
    Defines topology spread constraints to control how Pods are spread across
    different topology domains.

FIELDS:
  maxSkew	<integer> -required-
    Defines the maximum skew between the number of Pods in any two topology
    domains.

  topologyKey	<string> -required-
    Specifies the topology key to use for spreading Pods.

  whenUnsatisfiable	<string> -required-
    Sets the policy for how to handle unsatisfiable constraints, such as
    `DoNotSchedule` or `ScheduleAnyway`.

From helm --
https://github.com/redpanda-data/helm-charts/blob/main/charts/redpanda/values.yaml#L711-L714

  topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: ScheduleAnyway

JIRA Link: K8S-213

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant