Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 16 additions & 2 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" . }}
Expand Down Expand Up @@ -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:
Expand Down
12 changes: 12 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: []
Loading