From 0bbf564ef83c912023fc24376363e42b3cacc013 Mon Sep 17 00:00:00 2001 From: Tunahan Cicek Date: Tue, 16 Jul 2024 16:09:41 +0200 Subject: [PATCH 1/2] add Trg 0.4.7 read only file --- charts/semantic-hub/Chart.yaml | 2 +- charts/semantic-hub/README.md | 2 +- charts/semantic-hub/templates/hub/hub-deployment.yaml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/semantic-hub/Chart.yaml b/charts/semantic-hub/Chart.yaml index 846eb109..d5635a0e 100644 --- a/charts/semantic-hub/Chart.yaml +++ b/charts/semantic-hub/Chart.yaml @@ -26,7 +26,7 @@ sources: - https://github.com/eclipse-tractusx/sldt-semantic-hub type: application -version: 0.3.0 +version: 0.3.1 appVersion: 0.4.0 dependencies: - repository: https://charts.bitnami.com/bitnami diff --git a/charts/semantic-hub/README.md b/charts/semantic-hub/README.md index 40e4a1b7..ee7b5858 100644 --- a/charts/semantic-hub/README.md +++ b/charts/semantic-hub/README.md @@ -1,6 +1,6 @@ # semantic-hub -![Version: 0.1.24](https://img.shields.io/badge/Version-0.1.24-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.2.10-M1](https://img.shields.io/badge/AppVersion-0.2.10--M1-informational?style=flat-square) +![Version: 0.3.1](https://img.shields.io/badge/Version-0.3.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.4.0](https://img.shields.io/badge/AppVersion-0.4.0-informational?style=flat-square) **Helm Chart for the Catena-X Semantic Hub Application**
This Helm charts installs the Semantic Hub application and its dependencies. diff --git a/charts/semantic-hub/templates/hub/hub-deployment.yaml b/charts/semantic-hub/templates/hub/hub-deployment.yaml index b49f74ef..60a4c51a 100644 --- a/charts/semantic-hub/templates/hub/hub-deployment.yaml +++ b/charts/semantic-hub/templates/hub/hub-deployment.yaml @@ -84,5 +84,11 @@ spec: failureThreshold: {{ .Values.hub.readinessProbe.failureThreshold }} resources: {{ .Values.hub.resources | toYaml | indent 12 }} + volumeMounts: + - mountPath: /tmp + name: empty-tmp + volumes: + - name: empty-tmp + emptyDir: {} imagePullSecrets: {{ .Values.hub.imagePullSecrets | toYaml | indent 8 }} From f8d5b21731d4ad01b9fa0d3d1e46ba17078c80ee Mon Sep 17 00:00:00 2001 From: Tunahan Cicek Date: Tue, 16 Jul 2024 16:16:08 +0200 Subject: [PATCH 2/2] add readOnlyRootFilesystem: true --- charts/semantic-hub/templates/hub/hub-deployment.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/charts/semantic-hub/templates/hub/hub-deployment.yaml b/charts/semantic-hub/templates/hub/hub-deployment.yaml index 60a4c51a..7179b1eb 100644 --- a/charts/semantic-hub/templates/hub/hub-deployment.yaml +++ b/charts/semantic-hub/templates/hub/hub-deployment.yaml @@ -47,6 +47,7 @@ spec: securityContext: runAsUser: 100 allowPrivilegeEscalation: false + readOnlyRootFilesystem: true {{- if not .Values.hub.authentication }} args: ["--spring.profiles.active=local"] {{- end }}