From 32e9dd6dcf22cf9b8c9bd46046a9250145cbe7f9 Mon Sep 17 00:00:00 2001 From: Meysam Azad Date: Thu, 26 Oct 2023 09:38:09 +0700 Subject: [PATCH] feat: add initContainers to sdk job --- charts/licenseware-sdk-v2/Chart.yaml | 2 +- charts/licenseware-sdk-v2/templates/job.yml | 4 ++++ charts/licenseware-sdk-v2/values.yaml | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/charts/licenseware-sdk-v2/Chart.yaml b/charts/licenseware-sdk-v2/Chart.yaml index 64bd603..3d6850c 100644 --- a/charts/licenseware-sdk-v2/Chart.yaml +++ b/charts/licenseware-sdk-v2/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.13.1 +version: 0.14.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/licenseware-sdk-v2/templates/job.yml b/charts/licenseware-sdk-v2/templates/job.yml index e403d8f..3b4d55e 100644 --- a/charts/licenseware-sdk-v2/templates/job.yml +++ b/charts/licenseware-sdk-v2/templates/job.yml @@ -44,6 +44,10 @@ spec: securityContext: {{- tpl (toYaml .) $ | nindent 8 }} {{- end }} + {{ with .Values.job.initContainers }} + initContainers: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ tpl (default .Values.global.containerName .Values.job.containerName) $ | default (include "licenseware-sdk-v2.fullname" .) }} {{- with .Values.job.command }} diff --git a/charts/licenseware-sdk-v2/values.yaml b/charts/licenseware-sdk-v2/values.yaml index c6d276a..527c263 100644 --- a/charts/licenseware-sdk-v2/values.yaml +++ b/charts/licenseware-sdk-v2/values.yaml @@ -454,6 +454,7 @@ workerApp: tolerations: [] job: + initContainers: [] activeDeadlineSeconds: null affinity: {} args: