mirror of
https://github.com/nold360/hive-apps
synced 2024-11-08 23:06:38 +00:00
17 lines
639 B
YAML
17 lines
639 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: {{ template "common.names.fullname" . }}-init
|
|
labels:
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
data:
|
|
init.sh: |
|
|
#!/bin/bash
|
|
if ! octoprint --version 2>/dev/null ; then
|
|
mkdir -p /octoprint/tmp ; wget -O- https://github.com/OctoPrint/OctoPrint/archive/refs/tags/1.8.1.tar.gz | tar -xz --strip-components 1 -C /octoprint/tmp ; cd /octoprint/tmp; pip install .
|
|
fi
|
|
{{- if .Values.octoprint.plugins.install }}
|
|
{{- range .Values.octoprint.plugins.plugins }}
|
|
pip install{{if $.Values.octoprint.plugins.upgrade }} --upgrade{{ end }} {{.}}
|
|
{{- end }}
|
|
{{- end }}
|