From 75e71fd0421a9bf26ef30d54181fbb53334abdb9 Mon Sep 17 00:00:00 2001 From: Thomas Miceli <27960254+thomiceli@users.noreply.github.com> Date: Fri, 9 May 2025 20:08:25 +0200 Subject: [PATCH] Use Helm deployment.env[] values (#471) --- helm/opengist/Chart.yaml | 2 +- helm/opengist/README.md | 2 +- helm/opengist/templates/deployment.yaml | 7 +++++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/helm/opengist/Chart.yaml b/helm/opengist/Chart.yaml index 5b71124..8c06e50 100644 --- a/helm/opengist/Chart.yaml +++ b/helm/opengist/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: opengist description: Opengist Helm chart for Kubernetes type: application -version: 0.1.0 +version: 0.2.0 appVersion: 1.10.0 home: https://opengist.io icon: https://raw.githubusercontent.com/thomiceli/opengist/master/public/opengist.svg diff --git a/helm/opengist/README.md b/helm/opengist/README.md index b5fba2f..858dac0 100644 --- a/helm/opengist/README.md +++ b/helm/opengist/README.md @@ -1,6 +1,6 @@ # Opengist Helm Chart -![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: 1.10.0](https://img.shields.io/badge/AppVersion-1.10.0-informational?style=flat-square) +![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: 1.10.0](https://img.shields.io/badge/AppVersion-1.10.0-informational?style=flat-square) Opengist Helm chart for Kubernetes. diff --git a/helm/opengist/templates/deployment.yaml b/helm/opengist/templates/deployment.yaml index 02a706b..72ed6e2 100644 --- a/helm/opengist/templates/deployment.yaml +++ b/helm/opengist/templates/deployment.yaml @@ -32,6 +32,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if .Values.deployment.terminationGracePeriodSeconds }} + terminationGracePeriodSeconds: {{ .Values.deployment.terminationGracePeriodSeconds }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} @@ -49,6 +52,10 @@ spec: mountPath: /init/config - name: config-volume mountPath: /config-volume + {{- if .Values.deployment.env }} + env: + {{- toYaml .Values.deployment.env | nindent 12 }} + {{- end }} containers: - name: {{ .Chart.Name }} securityContext: