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 @@ -53,6 +53,7 @@ A Helm chart for Kubernetes
| replicaCount | int | `1` | Number of replicas (ignored when autoscaling is enabled) |
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Image

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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-data-api.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-data-api.labels" . | nindent 4 }}
spec:
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 @@ -71,6 +71,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
1 change: 1 addition & 0 deletions charts/lago-data-worker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ A Helm chart for Kubernetes
| replicaCount | int | `1` | Number of replicas (ignored when autoscaling is enabled) |
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Image

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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-data-worker.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-data-worker.labels" . | nindent 4 }}
spec:
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 @@ -106,6 +106,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
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 @@ -41,6 +41,7 @@ A Helm chart for Kubernetes
| replicaCount | int | `1` | Number of replicas (ignored when autoscaling is enabled) |
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Image

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 @@ -5,6 +5,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-events-processor-worker.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-events-processor-worker.labels" . | nindent 4 }}
spec:
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 @@ -159,6 +159,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
1 change: 1 addition & 0 deletions charts/lago-front/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ A Helm chart for Kubernetes
| replicaCount | int | `1` | Number of replicas (ignored when autoscaling is enabled) |
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Image

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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-front.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-front.labels" . | nindent 4 }}
spec:
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 @@ -75,6 +75,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
1 change: 1 addition & 0 deletions charts/lago-mcp-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ A Helm chart for Kubernetes
|-----|------|---------|-------------|
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Container

Expand Down
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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-mcp-server.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-mcp-server.labels" . | nindent 4 }}
spec:
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 @@ -37,6 +37,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
1 change: 1 addition & 0 deletions charts/lago-pdf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ A Helm chart for the Lago PDF stack (Gotenberg + optional Rails worker)
|-----|------|---------|-------------|
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Extra Objects

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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-pdf.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-pdf.labels" . | nindent 4 }}
spec:
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 @@ -496,6 +496,10 @@ gotenberg:
# @section -- Gotenberg
fullnameOverride: ""

# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
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 @@ -53,6 +53,7 @@ A Helm chart for Kubernetes
| replicaCount | int | `1` | Number of replicas (ignored when autoscaling is enabled) |
| nameOverride | string | `""` | Override the chart name |
| fullnameOverride | string | `""` | Override the full release name |
| annotations | object | `{}` | Deployment metadata annotations |

### Image

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 @@ -2,6 +2,10 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "lago-rails.fullname" . }}
{{- with .Values.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
{{- include "lago-rails.labels" . | nindent 4 }}
spec:
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 @@ -400,6 +400,10 @@ image:
# @default -- `[]`
# @section -- Image
imagePullSecrets: []
# -- Deployment metadata annotations (e.g. Stakater Reloader)
# @section -- Deployment
annotations: {}

# -- Override the chart name
# @section -- Deployment
nameOverride: ""
Expand Down
27 changes: 27 additions & 0 deletions tests-common/deployment/common_patterns_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,33 @@ tests:
- notExists:
path: spec.template.spec.topologySpreadConstraints

# ============================================================================
# Deployment Annotations Tests
# ============================================================================
- it: should include Deployment annotations when specified
values:
- ./fixtures/required.yaml
set:
annotations:
reloader.stakater.com/auto: "true"
custom.example.com/owner: "platform"
asserts:
- equal:
path: metadata.annotations["reloader.stakater.com/auto"]
value: "true"
- equal:
path: metadata.annotations["custom.example.com/owner"]
value: "platform"

- it: should not include Deployment annotations when empty
values:
- ./fixtures/required.yaml
set:
annotations: {}
asserts:
- notExists:
path: metadata.annotations

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