companyinfo / helm-charts

Company.info Helm charts repository
https://companyinfo.github.io/helm-charts
Apache License 2.0
68 stars 22 forks source link

Wrong type for pod `topologySpreadConstraints` #22

Closed zevisert closed 11 months ago

zevisert commented 11 months ago

Here is the link to the type from the kubernetes API documentation for v1/PodSpec: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#podspec-v1-core:~:text=the%20pod%27s%20tolerations.-,topologySpreadConstraints,-TopologySpreadConstraint%20array%0Apatch

You can see that topologySpreadConstraints is an array of TopologySpreadConstraint objects.

The values.yaml here exports a default map, instead of an empty list.

https://github.com/companyinfo/helm-charts/blob/6ab22656613426432e05555873b06a3da9d8a93e/charts/helmet/values.yaml#L323-L326