Skip to content

Commit 271758f

Browse files
robodev-r2d2a-klos
andauthored
chore: dump version 3.4.0 into chart and pyproject.toml files (#159)
This pull request updates the RAG application's versioning to 3.4.0 across the Helm charts, Python libraries, and service components. It also improves the Helm chart image tag handling by defaulting to the chart's app version when no explicit tag is set, and updates the default image tags in the values files to be empty, ensuring that the latest chart version is used unless overridden. **Version Updates** * Bump version numbers from 3.3.0 (or 1.0.0 for the chart) to 3.4.0 in all Python libraries (`pyproject.toml` files) and the Helm chart (`Chart.yaml`). [[1]](diffhunk://#diff-9c5aeb0db77c2eec077d07ddc3b3810ae1a4a1e50ee7061fba37a46706c513fbL7-R7) [[2]](diffhunk://#diff-dede389bcfb615c4b45cd1da7ac14cbe9535305f41f19cce09e321c91a8bb323L7-R7) [[3]](diffhunk://#diff-ddd05b1c3207b7c5f110a23524e106448461d9847d93c840c68412b9778ec3e6L48-R48) [[4]](diffhunk://#diff-9c4162cc1c16dd4c7ec5e95e79df285e8c0882a1db7ff2892c746a0537d26c36L7-R7) [[5]](diffhunk://#diff-b19ab043535569caf9345971969d115d6515ae951a21b00a278145a28230fba1L7-R7) [[6]](diffhunk://#diff-7be99b3586ebefbb9757532b67d9bd826779bfe12db834326790c00f868238e7L56-R56) [[7]](diffhunk://#diff-bda9860363f25ca7829f0bc0121455b5cfea15f6ecc4e98d168aba411d9653c9L51-R51) [[8]](diffhunk://#diff-a32cd883126f65652f92c8ecc411d949b7bcf95edb2156c36dc2c1b7063ee690L3-R3) [[9]](diffhunk://#diff-575f4ba32d7ff340b37eb2f875cb9574553092b79335faadd5f3b6be662b6925L3-R3) [[10]](diffhunk://#diff-0fea8b7ef125babb23e9024087bb7065ac7a34f487d4420163b2836a25b41e1dL8-R9) **Helm Chart Improvements** * Update image tag templating in all helper templates to default to `.Chart.AppVersion` if no explicit tag is provided, making image versioning more robust and consistent. (`_admin_backend_and_extractor_helpers.tpl`, `_admin_frontend_helpers.tpl`, `_backend_helpers.tpl`, `_frontend_helpers.tpl`) [[1]](diffhunk://#diff-3ab40efdb049da16ac327c9fbaf8ec1d25f26efbeded4e0c2cfd7f50b976d3ceL73-R79) [[2]](diffhunk://#diff-d4bb1a3eee0baddaae66c8436788f842a4a323b8f4e872abed7bb131c293b5deL4-R5) [[3]](diffhunk://#diff-148b9880aef46deecdbc54ae7d004627e0aa1bf612fe139eb607861495ae9301L98-R104) [[4]](diffhunk://#diff-835710f9cf03927b5ee89d7846ddf62bd8b984af02ba75349500c65257c43934L6-R7) * Set default image tags to empty strings in `values.yaml` for all components, so the templates will use the chart's app version by default. (`backend`, `frontend`, `adminBackend`, `extractor`, `adminFrontend` sections) [[1]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L78-R86) [[2]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L232-R232) [[3]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L267-R267) [[4]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L363-R363) [[5]](diffhunk://#diff-673dd2d3d4e66a8fd4e45f9c1c9900711313f946bf8b6a89e96c954988fc14f3L414-R414) --------- Co-authored-by: Andreas Klos <[email protected]>
1 parent 0ab2f31 commit 271758f

File tree

20 files changed

+36
-30
lines changed

20 files changed

+36
-30
lines changed

infrastructure/rag/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ description: |
55
form rag. rag is an application, where you can upload your own documents and
66
ask question about their content and the rag will answer them.
77
type: application
8-
version: 1.0.0
9-
appVersion: "1.0.0"
8+
version: 3.4.0
9+
appVersion: "3.4.0"
1010
dependencies:
1111
- name: langfuse
1212
repository: https://langfuse.github.io/langfuse-k8s

infrastructure/rag/templates/_admin_backend_and_extractor_helpers.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,13 @@
7070

7171
# image
7272
{{- define "adminBackend.fullImageName" -}}
73-
{{- printf "%s:%s" .Values.adminBackend.image.repository .Values.adminBackend.image.tag | trimSuffix ":" }}
73+
{{- $tag := default .Chart.AppVersion .Values.adminBackend.image.tag -}}
74+
{{- printf "%s:%s" .Values.adminBackend.image.repository $tag | trimSuffix ":" }}
7475
{{- end -}}
7576

7677
{{- define "extractor.fullImageName" -}}
77-
{{- printf "%s:%s" .Values.extractor.image.repository .Values.extractor.image.tag | trimSuffix ":" }}
78+
{{- $tag := default .Chart.AppVersion .Values.extractor.image.tag -}}
79+
{{- printf "%s:%s" .Values.extractor.image.repository $tag | trimSuffix ":" }}
7880
{{- end -}}
7981

8082
{{- define "extractor.huggingfaceCacheDir" -}}

infrastructure/rag/templates/_admin_frontend_helpers.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{{- define "adminFrontend.fullImageName" -}}
22
{{- if .Values.adminFrontend.image -}}
33
{{- if .Values.adminFrontend.image.repository -}}
4-
{{- printf "%s:%s" .Values.adminFrontend.image.repository .Values.adminFrontend.image.tag | trimSuffix ":" }}
4+
{{- $tag := default .Chart.AppVersion .Values.adminFrontend.image.tag -}}
5+
{{- printf "%s:%s" .Values.adminFrontend.image.repository $tag | trimSuffix ":" }}
56
{{- else -}}
67
{{ required "A valid .Values.adminFrontend.image.repository entry required!" . }}
78
{{- end -}}

infrastructure/rag/templates/_backend_helpers.tpl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,13 @@
9595
{{- end -}}
9696

9797
{{- define "backend.fullImageName" -}}
98-
{{- printf "%s:%s" .Values.backend.image.repository .Values.backend.image.tag | trimSuffix ":" | trimSuffix "-" }}
98+
{{- $tag := default .Chart.AppVersion .Values.backend.image.tag -}}
99+
{{- printf "%s:%s" .Values.backend.image.repository $tag | trimSuffix ":" | trimSuffix "-" }}
99100
{{- end -}}
100101

101102
{{- define "mcp.fullImageName" -}}
102-
{{- printf "%s:%s" .Values.backend.mcp.image.repository .Values.backend.mcp.image.tag | trimSuffix ":" | trimSuffix "-" }}
103+
{{- $tag := default .Chart.AppVersion .Values.backend.mcp.image.tag -}}
104+
{{- printf "%s:%s" .Values.backend.mcp.image.repository $tag | trimSuffix ":" | trimSuffix "-" }}
103105
{{- end -}}
104106

105107

infrastructure/rag/templates/_frontend_helpers.tpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
{{- end -}}
44

55
{{- define "frontend.fullImageName" -}}
6-
{{- printf "%s:%s" .Values.frontend.image.repository .Values.frontend.image.tag | trimSuffix ":" -}}
6+
{{- $tag := default .Chart.AppVersion .Values.frontend.image.tag -}}
7+
{{- printf "%s:%s" .Values.frontend.image.repository $tag | trimSuffix ":" -}}
78
{{- end -}}
89

910
{{- define "ingress.frontendFullname" -}}

infrastructure/rag/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ backend:
7575
image:
7676
repository: ghcr.io/stackitcloud/rag-template/mcp-server
7777
pullPolicy: Always
78-
tag: "v2.3.0"
78+
tag: ""
7979

8080
name: backend
8181
replicaCount: 1
8282

8383
image:
8484
repository: ghcr.io/stackitcloud/rag-template/rag-backend
8585
pullPolicy: Always
86-
tag: "v2.3.0"
86+
tag: ""
8787

8888
command:
8989
- "poetry"
@@ -229,7 +229,7 @@ frontend:
229229
image:
230230
repository: ghcr.io/stackitcloud/rag-template/frontend
231231
pullPolicy: Always
232-
tag: "v2.3.0"
232+
tag: ""
233233

234234
service:
235235
type: ClusterIP
@@ -264,7 +264,7 @@ adminBackend:
264264
image:
265265
repository: ghcr.io/stackitcloud/rag-template/admin-backend
266266
pullPolicy: Always
267-
tag: "v2.3.0"
267+
tag: ""
268268

269269
command:
270270
- "poetry"
@@ -360,7 +360,7 @@ extractor:
360360
image:
361361
repository: ghcr.io/stackitcloud/rag-template/document-extractor
362362
pullPolicy: Always
363-
tag: "v2.3.0"
363+
tag: ""
364364

365365
command:
366366
- "poetry"
@@ -411,7 +411,7 @@ adminFrontend:
411411
image:
412412
repository: ghcr.io/stackitcloud/rag-template/admin-frontend
413413
pullPolicy: Always
414-
tag: "v2.3.0"
414+
tag: ""
415415

416416
service:
417417
type: ClusterIP

libs/admin-api-lib/poetry.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/admin-api-lib/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "admin-api-lib"
7-
version = "v3.3.0"
7+
version = "v3.4.0"
88
description = "The admin backend is responsible for the document management. This includes deletion, upload and returning the source document."
99
authors = [
1010
"STACKIT GmbH & Co. KG <[email protected]>",

libs/extractor-api-lib/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "extractor-api-lib"
7-
version = "v3.3.0"
7+
version = "v3.4.0"
88
description = "Extracts the content of documents, websites, etc and maps it to a common format."
99
authors = [
1010
"STACKIT GmbH & Co. KG <[email protected]>",

libs/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ max-line-length = 120
4545

4646
[tool.poetry]
4747
name = "rag_libs"
48-
version = "3.3.0"
48+
version = "v3.4.0"
4949
description = "The libraries for building robust RAG."
5050
authors = [
5151
"STACKIT GmbH & Co. KG <[email protected]>",

0 commit comments

Comments
 (0)