diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 28900b0..e771020 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -3,7 +3,7 @@ name: kz-scoring-api description: | Synchronous REST facade for Beeline-initiator PKB lookups via vaultee-pipelines. type: application -version: 0.3.0 -appVersion: "0.1.2" +version: 0.4.0 +appVersion: "0.4.1" maintainers: - name: Aggregion diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index edf87f1..3740486 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -29,6 +29,10 @@ spec: serviceAccountName: {{ include "kz-scoring-api.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} + {{- with .Values.extraInitContainers }} + initContainers: + {{- tpl (toYaml .) $ | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} image: {{ include "kz-scoring-api.image" . }} @@ -60,17 +64,27 @@ spec: {{- end }} resources: {{- toYaml .Values.resources | nindent 12 }} - {{- if .Values.models.volume.enabled }} + {{- if or .Values.models.volume.enabled .Values.extraVolumeMounts }} volumeMounts: + {{- if .Values.models.volume.enabled }} - name: models mountPath: {{ .Values.models.volume.mountPath | quote }} readOnly: {{ .Values.models.volume.readOnly }} + {{- end }} + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} {{- end }} - {{- if .Values.models.volume.enabled }} + {{- if or .Values.models.volume.enabled .Values.extraVolumes }} volumes: + {{- if .Values.models.volume.enabled }} - name: models {{- $vol := omit .Values.models.volume "enabled" "mountPath" "readOnly" }} {{- toYaml $vol | nindent 10 }} + {{- end }} + {{- with .Values.extraVolumes }} + {{- tpl (toYaml .) $ | nindent 8 }} + {{- end }} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: diff --git a/chart/values.yaml b/chart/values.yaml index 1784581..c1331b2 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -127,3 +127,15 @@ models: # secretName: kz-scoring-models extraEnv: [] + +# Extra init containers rendered as-is into the pod spec. Values are Helm +# template-evaluated (so you can reference `.Values` / `.Release` inside), +# useful e.g. for pulling models from MinIO into an emptyDir shared with +# ``models.volume``. +extraInitContainers: [] + +# Extra pod-level volumes appended to the deployment (template-evaluated). +extraVolumes: [] + +# Extra volume mounts appended to the main container. +extraVolumeMounts: []