Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions charts/lago-data-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

### Service

Expand Down
4 changes: 4 additions & 0 deletions charts/lago-data-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-data-api/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ tolerations: []
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []

# -- Array of extra K8s manifests to deploy
# @section -- Extra Objects
extraObjects: []
1 change: 1 addition & 0 deletions charts/lago-data-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

### Autoscaling

Expand Down
4 changes: 4 additions & 0 deletions charts/lago-data-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-data-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,7 @@ tolerations: []
# -- Pod affinity rules
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []
1 change: 1 addition & 0 deletions charts/lago-events-processor-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

### Autoscaling

Expand Down
4 changes: 4 additions & 0 deletions charts/lago-events-processor-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-events-processor-worker/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ tolerations: []
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []

# -- Array of extra K8s manifests to deploy
# @section -- Extra Objects
extraObjects: []
1 change: 1 addition & 0 deletions charts/lago-front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

### Service

Expand Down
4 changes: 4 additions & 0 deletions charts/lago-front/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-front/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ tolerations: []
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []

# -- Array of extra K8s manifests to deploy
# @section -- Extra Objects
extraObjects: []
1 change: 1 addition & 0 deletions charts/lago-mcp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
4 changes: 4 additions & 0 deletions charts/lago-mcp-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-mcp-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,7 @@ tolerations: []
# -- Pod affinity rules
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []
1 change: 1 addition & 0 deletions charts/lago-pdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ A Helm chart for the Lago PDF stack (Gotenberg + optional Rails worker)
| gotenberg.nodeSelector | object | `{}` | Node selector constraints |
| gotenberg.tolerations | list | `[]` | Pod tolerations |
| gotenberg.affinity | object | `{}` | Pod affinity rules |
| gotenberg.topologySpreadConstraints | list | `[]` | Pod topology spread constraints |
| gotenberg.imagePullSecrets | list | `[]` | Image pull secrets for private registries |
| gotenberg.nameOverride | string | `""` | Override the Gotenberg chart name |
| gotenberg.fullnameOverride | string | `""` | Override the Gotenberg full release name |
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-pdf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gotenberg.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.gotenberg.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-pdf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,10 @@ gotenberg:
# @section -- Gotenberg
affinity: {}

# -- Pod topology spread constraints
# @section -- Gotenberg
topologySpreadConstraints: []

# -- Image pull secrets for private registries
# @section -- Gotenberg
imagePullSecrets: []
Expand Down
1 change: 1 addition & 0 deletions charts/lago-rails/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ A Helm chart for Kubernetes
| nodeSelector | object | `{}` | Node selector constraints |
| tolerations | list | `[]` | Pod tolerations |
| affinity | object | `{}` | Pod affinity rules |
| topologySpreadConstraints | list | `[]` | Pod topology spread constraints |

### Service

Expand Down
4 changes: 4 additions & 0 deletions charts/lago-rails/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,10 @@ spec:
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/lago-rails/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,10 @@ tolerations: []
# @section -- Pod
affinity: {}

# -- Pod topology spread constraints
# @section -- Pod
topologySpreadConstraints: []

# -- Array of extra K8s manifests to deploy
# @section -- Extra Objects
extraObjects: []
34 changes: 34 additions & 0 deletions tests-common/deployment/common_patterns_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,40 @@ tests:
- notExists:
path: spec.template.spec.containers[0].resources

# ============================================================================
# topologySpreadConstraints Tests
# ============================================================================
- it: should include topologySpreadConstraints when specified
values:
- ./fixtures/required.yaml
set:
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app.kubernetes.io/name: test-app
asserts:
- equal:
path: spec.template.spec.topologySpreadConstraints[0].maxSkew
value: 1
- equal:
path: spec.template.spec.topologySpreadConstraints[0].topologyKey
value: kubernetes.io/hostname
- equal:
path: spec.template.spec.topologySpreadConstraints[0].whenUnsatisfiable
value: DoNotSchedule

- it: should not include topologySpreadConstraints when empty
values:
- ./fixtures/required.yaml
set:
topologySpreadConstraints: []
asserts:
- notExists:
path: spec.template.spec.topologySpreadConstraints

# ============================================================================
# Combined Test - All Common Patterns
# ============================================================================
Expand Down
Loading