Skip to content

Commit 2110dba

Browse files
authored
chore: Add annotations field to service configuration (#173)
This pull request introduces support for custom Kubernetes service annotations for the backend service in the RAG infrastructure Helm chart. The main changes add the ability to specify service annotations via values, making deployments more flexible and customizable. **Helm templating improvements:** * Updated `service.yaml` to conditionally include the `annotations` field for the backend service if specified in values, using Helm templating with `toYaml` and `nindent` for proper formatting. **Configuration enhancements:** * Added an empty `annotations` map to the `backend.service` section in `values.yaml`, allowing users to define service annotations for the backend.
1 parent 378dec7 commit 2110dba

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

infrastructure/rag/templates/backend/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ apiVersion: v1
22
kind: Service
33
metadata:
44
name: {{ .Values.backend.name }}
5+
{{- with .Values.backend.service.annotations }}
6+
annotations:
7+
{{- toYaml . | nindent 4 }}
8+
{{- end }}
59
spec:
610
type: {{ .Values.backend.service.type }}
711
ports:

infrastructure/rag/values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ backend:
131131
service:
132132
type: ClusterIP
133133
port: 8080
134+
annotations: {}
134135

135136
pythonPathEnv:
136137
PYTHONPATH: src

0 commit comments

Comments
 (0)