Skip to content

Commit

Permalink
Merge pull request #29 from shankarpentyala07/main
Browse files Browse the repository at this point in the history
imagePullSecrets would be specified at the pod spec level, not at the container level
  • Loading branch information
mudler authored Nov 28, 2023
2 parents 68285e9 + 6804907 commit 3a7c8f7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions charts/local-ai/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ spec:
checksum/config-prompt-templates: {{ include (print $.Template.BasePath "/configmap-prompt-templates.yaml") . | sha256sum }}
{{- end }}
spec:
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
initContainers:
{{- if .Values.promptTemplates }}
- name: prompt-templates
image: {{ .Values.deployment.prompt_templates.image }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
imagePullPolicy: {{ .Values.deployment.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
Expand All @@ -48,10 +48,6 @@ spec:
{{- end }}
- name: download-model
image: {{ .Values.deployment.download_model.image }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
imagePullPolicy: {{ .Values.deployment.pullPolicy }}
command: ["/bin/sh", "-c"]
args:
Expand Down Expand Up @@ -98,10 +94,6 @@ spec:
containers:
- name: {{ template "local-ai.fullname" . }}
image: {{ .Values.deployment.image }}
{{- with .Values.deployment.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 12 }}
{{- end }}
imagePullPolicy: {{ .Values.deployment.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
Expand Down

0 comments on commit 3a7c8f7

Please sign in to comment.