peertube: Update to 5.0.0
This commit is contained in:
parent
6b2553e72a
commit
5d3e6d6960
5 changed files with 42 additions and 2 deletions
|
@ -5,8 +5,8 @@ description: Free software to take back control of your videos
|
||||||
icon: https://upload.wikimedia.org/wikipedia/commons/2/2b/Logo_de_PeerTube.svg
|
icon: https://upload.wikimedia.org/wikipedia/commons/2/2b/Logo_de_PeerTube.svg
|
||||||
|
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.3
|
version: 0.2.0
|
||||||
appVersion: 4.3.1
|
appVersion: 5.0.0
|
||||||
maintainers:
|
maintainers:
|
||||||
- name: Alexander Olofsson
|
- name: Alexander Olofsson
|
||||||
email: ace@haxalot.com
|
email: ace@haxalot.com
|
||||||
|
|
|
@ -72,6 +72,22 @@ Create the name of the service account to use
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
include "peertube.randHex" 2 > result "4e"
|
||||||
|
*/}}
|
||||||
|
{{- define "peertube.randHex" -}}
|
||||||
|
{{- $result := "" -}}
|
||||||
|
{{- range $i := until . -}}
|
||||||
|
{{- $base := shuffle "0123456789abcdef" -}}
|
||||||
|
{{- $i_curr := (randNumeric 1) | int -}}
|
||||||
|
{{- $i_next := add $i_curr 1 | int -}}
|
||||||
|
{{- $rand_hex := substr $i_curr $i_next $base -}}
|
||||||
|
{{- $result = print $result $rand_hex -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- $result -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Replicate the Postgres fullname
|
Replicate the Postgres fullname
|
||||||
*/}}
|
*/}}
|
||||||
|
|
|
@ -60,6 +60,16 @@ spec:
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}
|
||||||
|
command:
|
||||||
|
- bash
|
||||||
|
- -c
|
||||||
|
- |
|
||||||
|
(
|
||||||
|
echo "Running migrations in background..."
|
||||||
|
find dist/scripts/migrations/ -iname '*.js' | xargs -rn1 node
|
||||||
|
echo "Background migrations have finished."
|
||||||
|
) &
|
||||||
|
node dist/server
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ include "peertube.imageTag" . }}"
|
image: "{{ .Values.image.repository }}:{{ include "peertube.imageTag" . }}"
|
||||||
|
|
|
@ -9,6 +9,17 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
{{- include "peertube.labels" . | nindent 4 }}
|
{{- include "peertube.labels" . | nindent 4 }}
|
||||||
data:
|
data:
|
||||||
|
{{- if .Values.config.secret }}
|
||||||
|
PEERTUBE_SECRET: {{ .Values.config.secret | b64enc }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $existing := (lookup "v1" "Secret" .Release.Namespace (include "peertube.fullname" .)).data.PEERTUBE_SECRET }}
|
||||||
|
{{- if $existing }}
|
||||||
|
PEERTUBE_SECRET: {{ $existing }}
|
||||||
|
{{- else }}
|
||||||
|
PEERTUBE_SECRET: {{ (include "peertube.randHex" 32) | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- if (and .Values.externalPostgresql.password (not .Values.externalPostgresql.existingSecret)) }}
|
{{- if (and .Values.externalPostgresql.password (not .Values.externalPostgresql.existingSecret)) }}
|
||||||
PEERTUBE_DB_PASSWORD: {{ .Values.externalPostgresql.password | b64enc }}
|
PEERTUBE_DB_PASSWORD: {{ .Values.externalPostgresql.password | b64enc }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
|
@ -26,6 +26,9 @@ config:
|
||||||
## use an init-container to create a config folder in your persistent storage.
|
## use an init-container to create a config folder in your persistent storage.
|
||||||
webadminConfig: true
|
webadminConfig: true
|
||||||
|
|
||||||
|
## Generate with somethingl like `openssl rand -hex 32` - will auto-generate if left blank
|
||||||
|
#secret:
|
||||||
|
|
||||||
admin:
|
admin:
|
||||||
email:
|
email:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue