Skip to content

add topologySpreadConstraints field to deployment - #154

Merged
carillan81 merged 1 commit into
mainfrom
dpx-724-support-for-topologyspreadconstraint-in-helm-chart
Sep 9, 2026
Merged

add topologySpreadConstraints field to deployment#154
carillan81 merged 1 commit into
mainfrom
dpx-724-support-for-topologyspreadconstraint-in-helm-chart

Conversation

@carillan81

@carillan81 carillan81 commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Motivation

There are some environments with specific configurations that require specific fields in the deployments to be present. Someone reported to need "topologySpreadConstraint" in their environment to be able to create deployments. As it's a trivial change, there is no reason to not adding the field to the available values.

Changes

We are adding:

  • new yaml field in values with example
  • template to add the field to deployment yaml
  • field documented in values in readme

Testing

create a values with topologySpreadConstraints field

@carillan81
carillan81 requested a review from a team as a code owner September 8, 2026 13:27

@simonrw simonrw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a fine change. Thanks for adding this.

Taking a step back, we have a few fields lifted directly from the pod spec - perhaps we should consider adding an extraPodOptions object type perhaps, and embedding that into the values.yaml file?

@carillan81
carillan81 merged commit 665f60f into main Sep 9, 2026
2 checks passed
@carillan81
carillan81 deleted the dpx-724-support-for-topologyspreadconstraint-in-helm-chart branch September 9, 2026 08:45
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 this pull request may close these issues.

2 participants