Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add inv_sig_helper pod #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion invidious/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Invidious is an alternative front-end to YouTube

type: application

version: 2.0.5
alindt marked this conversation as resolved.
Show resolved Hide resolved
version: 2.0.6
appVersion: v2.20240427

dependencies:
Expand Down
25 changes: 16 additions & 9 deletions invidious/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,22 @@ app.kubernetes.io/instance: {{ .Release.Name }}
Initialize default values and validate database configuration
*/}}
{{- define "invidious.init-defaults" -}}
{{/* Set default PostgreSQL host if using in-chart PostgreSQL */}}
{{- if .Values.postgresql.enabled }}
{{- if not .Values.config.db.host }}
{{- $_ := set .Values.config.db "host" (printf "%s-postgresql" .Release.Name) }}
{{/* Set default PostgreSQL host if using in-chart PostgreSQL */}}
{{- if .Values.postgresql.enabled }}
{{- if not .Values.config.db.host }}
{{- $_ := set .Values.config.db "host" (printf "%s-postgresql" .Release.Name) }}
{{- end }}
{{- else }}
{{/* Fail if external database host is not provided when in-chart PostgreSQL is disabled */}}
{{- if not .Values.config.db.host }}
{{- fail "config.db.host must be set when postgresql.enabled is false" }}
{{- end }}
{{- end }}
{{- else }}
{{/* Fail if external database host is not provided when in-chart PostgreSQL is disabled */}}
{{- if not .Values.config.db.host }}
{{- fail "config.db.host must be set when postgresql.enabled is false" }}

{{/* Set signature server if sighelper is enabled */}}
{{- if .Values.sighelper.enabled }}
{{- if not .Values.config.signature_server }}
{{- $_ := set .Values.config "signature_server" "localhost:12999" }}
{{- end }}
{{- end }}
{{- end }}
{{- end -}}
9 changes: 9 additions & 0 deletions invidious/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@ spec:
path: /
periodSeconds: 5
failureThreshold: 30
{{- if .Values.sighelper.enabled }}
- name: sighelper
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.sighelper.image.repository }}:{{ .Values.sighelper.image.tag }}"
imagePullPolicy: {{ .Values.sighelper.image.pullPolicy }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- end }}
restartPolicy: Always
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
7 changes: 7 additions & 0 deletions invidious/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,10 @@ config:
channel_threads: 1
full_refresh: false
feed_threads: 1

sighelper:
enabled: true
image:
repository: quay.io/invidious/inv-sig-helper
tag: latest
pullPolicy: Always