Compare commits

..

7 Commits

6 changed files with 32 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
apiVersion: v2 apiVersion: v2
name: kyoo name: kyoo
version: 0.1.2 version: 0.1.9
description: Chart for Kyoo description: Chart for Kyoo
keywords: keywords:
- media - media

View File

@@ -84,30 +84,18 @@ spec:
- name: PUBLIC_URL - name: PUBLIC_URL
value: "{{ .Values.config.publicUrl }}" value: "{{ .Values.config.publicUrl }}"
- name: POSTGRES_USER - name: POSTGRES_USER
valueFrom: value: "{{ .Values.config.postgresql.username }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.usernameKey }}"
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}" name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.passwordKey }}" key: "{{ .Values.config.postgresql.passwordKey }}"
- name: POSTGRES_DB - name: POSTGRES_DB
valueFrom: value: "{{ .Values.config.postgresql.database }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.databaseNameKey }}"
- name: POSTGRES_SERVER - name: POSTGRES_SERVER
valueFrom: value: "{{ .Values.config.postgresql.host }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.hostKey }}"
- name: POSTGRES_PORT - name: POSTGRES_PORT
valueFrom: value: "{{ .Values.config.postgresql.port }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.portKey }}"
{{ if .Values.config.oidc.enabled }} {{ if .Values.config.oidc.enabled }}
- name: OIDC_SERVICE_NAME - name: OIDC_SERVICE_NAME

View File

@@ -62,16 +62,23 @@ spec:
- name: KYOO_URL - name: KYOO_URL
value: http://{{ template "kyoo.fullname" . }}-back.{{ .Release.Namespace }}:{{ .Values.back.service.port }} value: http://{{ template "kyoo.fullname" . }}-back.{{ .Release.Namespace }}:{{ .Values.back.service.port }}
{{- if .Values.config.secretAPIKey.existingKyooSecretKey }}
- name: KYOO_APIKEYS - name: KYOO_APIKEYS
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.secretAPIKey.existingSecretName }}" name: "{{ .Values.config.secretAPIKey.existingSecretName }}"
key: "{{ .Values.config.secretAPIKey.existingKyooSecretKey }}" key: "{{ .Values.config.secretAPIKey.existingKyooSecretKey }}"
{{- end }}
{{- if .Values.config.secretAPIKey.existingTMDBSecretKey }}
- name: THEMOVIEDB_APIKEY - name: THEMOVIEDB_APIKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.secretAPIKey.existingSecretName }}" name: "{{ .Values.config.secretAPIKey.existingSecretName }}"
key: "{{ .Values.config.secretAPIKey.existingTMDBSecretKey }}" key: "{{ .Values.config.secretAPIKey.existingTMDBSecretKey }}"
{{- end }}
- name: LIBRARY_LANGUAGES - name: LIBRARY_LANGUAGES
value: "{{ .Values.config.libraryLanguages }}" value: "{{ .Values.config.libraryLanguages }}"
- name: RABBITMQ_HOST - name: RABBITMQ_HOST

View File

@@ -77,30 +77,18 @@ spec:
- name: PUBLIC_URL - name: PUBLIC_URL
value: "{{ .Values.config.publicUrl }}" value: "{{ .Values.config.publicUrl }}"
- name: POSTGRES_USER - name: POSTGRES_USER
valueFrom: value: "{{ .Values.config.postgresql.username }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.usernameKey }}"
- name: POSTGRES_PASSWORD - name: POSTGRES_PASSWORD
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}" name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.passwordKey }}" key: "{{ .Values.config.postgresql.passwordKey }}"
- name: POSTGRES_DB - name: POSTGRES_DB
valueFrom: value: "{{ .Values.config.postgresql.database }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.databaseNameKey }}"
- name: POSTGRES_SERVER - name: POSTGRES_SERVER
valueFrom: value: "{{ .Values.config.postgresql.host }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.hostKey }}"
- name: POSTGRES_PORT - name: POSTGRES_PORT
valueFrom: value: "{{ .Values.config.postgresql.port }}"
secretKeyRef:
name: "{{ .Values.config.postgresql.existingSecretName }}"
key: "{{ .Values.config.postgresql.portKey }}"
{{ if .Values.config.oidc.enabled }} {{ if .Values.config.oidc.enabled }}
- name: OIDC_SERVICE_NAME - name: OIDC_SERVICE_NAME

View File

@@ -65,16 +65,23 @@ spec:
- name: KYOO_URL - name: KYOO_URL
value: http://{{ template "kyoo.fullname" . }}-back.{{ .Release.Namespace }}:{{ .Values.back.service.port }} value: http://{{ template "kyoo.fullname" . }}-back.{{ .Release.Namespace }}:{{ .Values.back.service.port }}
{{- if .Values.config.secretAPIKey.existingKyooSecretKey }}
- name: KYOO_APIKEYS - name: KYOO_APIKEYS
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.secretAPIKey.existingSecretName }}" name: "{{ .Values.config.secretAPIKey.existingSecretName }}"
key: "{{ .Values.config.secretAPIKey.existingKyooSecretKey }}" key: "{{ .Values.config.secretAPIKey.existingKyooSecretKey }}"
{{- end }}
{{- if .Values.config.secretAPIKey.existingTMDBSecretKey }}
- name: THEMOVIEDB_APIKEY - name: THEMOVIEDB_APIKEY
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: "{{ .Values.config.secretAPIKey.existingSecretName }}" name: "{{ .Values.config.secretAPIKey.existingSecretName }}"
key: "{{ .Values.config.secretAPIKey.existingTMDBSecretKey }}" key: "{{ .Values.config.secretAPIKey.existingTMDBSecretKey }}"
{{- end }}
- name: LIBRARY_LANGUAGES - name: LIBRARY_LANGUAGES
value: "{{ .Values.config.libraryLanguages }}" value: "{{ .Values.config.libraryLanguages }}"
- name: LIBRARY_IGNORE_PATTERN - name: LIBRARY_IGNORE_PATTERN

View File

@@ -68,7 +68,7 @@ config:
# UNLOGGED_PERMISSIONS=overall.read,overall.play # UNLOGGED_PERMISSIONS=overall.read,overall.play
# You can specify this to allow guests users to see your collection without behing able to play videos for example: # You can specify this to allow guests users to see your collection without behing able to play videos for example:
# UNLOGGED_PERMISSIONS=overall.read # UNLOGGED_PERMISSIONS=overall.read
unloggedPermissions: "" unloggedPermissions: overall.read
# Specify permissions of new accounts. # Specify permissions of new accounts.
defaultPermissions: overall.read,overall.play defaultPermissions: overall.read,overall.play
@@ -112,15 +112,16 @@ config:
secretIDKey: "" secretIDKey: ""
## Postgresql ## Postgresql
## All configuration is expected to be stored in a secret, reference the secret name and each key for the value
## ##
postgresql: postgresql:
username: ""
database: ""
host: ""
port: ""
# -- Use a secret to store the pasword
existingSecretName: "" existingSecretName: ""
usernameKey: ""
passwordKey: "" passwordKey: ""
databaseNameKey: ""
hostKey: ""
portKey: ""
## Configure the ingress resource that allows you to access the ## Configure the ingress resource that allows you to access the
## kyoo installation. Set up the URL ## kyoo installation. Set up the URL
@@ -633,7 +634,7 @@ scanner:
## ref: https://hub.docker.com/r/zoriya/zoriya/kyoo_scanner/tags ## ref: https://hub.docker.com/r/zoriya/zoriya/kyoo_scanner/tags
## ##
image: image:
repository: zoriya/zoriya/kyoo_scanner repository: zoriya/kyoo_scanner
tag: "4.4.0" tag: "4.4.0"
## Specify a imagePullPolicy ## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent' ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
@@ -817,7 +818,7 @@ rabbitmq:
## Do not use simultaneously with `extraConfigurationExistingSecret` ## Do not use simultaneously with `extraConfigurationExistingSecret`
## ##
extraConfiguration: |- extraConfiguration: |-
default_vhost = none default_vhost = '/'
default_permissions.configure = .* default_permissions.configure = .*
default_permissions.read = .* default_permissions.read = .*
default_permissions.write = .* default_permissions.write = .*