fix(plextraktsync): add docs and persistence (#3604)

* fix(plextraktsync): add docs and persistence

* fix(plextraktsync): add docs and persistence

* Update charts/incubator/plextraktsync/values.yaml

* Update charts/incubator/plextraktsync/Chart.yaml

* removed excess line

* create initContainers

* fixed init formatting

* add env to init container

* update questions.yaml

* removed comment

* Update charts/incubator/plextraktsync/values.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/values.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/values.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/docs/installation_notes.md

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* Update charts/incubator/plextraktsync/questions.yaml

Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>

* switch to configmap

* lint

* Not needed

* add cron

* add gui

* delete docs for now

* majorbump

* cron update

Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
Co-authored-by: Stavros kois <s.kois@outlook.com>
This commit is contained in:
Xstar97
2022-09-17 04:47:20 -04:00
committed by GitHub
parent 85eac34233
commit 69e918afd2
6 changed files with 130 additions and 18 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ dependencies:
repository: https://library-charts.truecharts.org
version: 10.5.10
deprecated: false
description: "Cette app permet de synchroniser le contenu de votre bibliotheque plex (pas de plexpass obligatoire) avec le site trakt.tv ."
description: Two-way-sync between trakt.tv and Plex Media Server.
home: https://truecharts.org/docs/charts/incubator/plextraktsync
icon: https://truecharts.org/img/hotlink-ok/chart-icons/plextraktsync.png
keywords:
@@ -28,4 +28,4 @@ sources:
- https://github.com/Taxel/PlexTraktSync
- https://ghcr.io/taxel/plextraktsync
type: application
version: 0.0.31
version: 1.0.0
+45 -10
View File
@@ -10,51 +10,86 @@ questions:
# Include{recreate}
# Include{controllerExpert}
# Include{controllerExpertExtraArgs}
- variable: plexTraktSync
group: Container Configuration
label: Plex Trakt Sync Config
schema:
additional_attrs: true
type: dict
attrs:
- variable: task
label: Task
description: Task to run on schedule. Leave empty for default. Default is <sync --sync=all>
schema:
type: string
default: ""
- variable: schedule
label: Schedule
description: How often to run the task
schema:
type: cron
default:
minute: "0"
hour: "*/6"
dom: "*"
month: "*"
dow: "*"
# Include{containerConfig}
# Include{serviceExpertRoot}
default: false
# Include{serviceExpert}
# Include{serviceList}
# Include{persistenceRoot}
- variable: config
label: Config Storage
description: Container Path Config
schema:
additional_attrs: true
type: dict
attrs:
# Include{persistenceBasic}
# Include{persistenceAdvanced}
# Include{persistenceList}
# Include{ingressList}
# Include{security}
# Include{securityContextAdvancedRoot}
- variable: privileged
label: "Privileged mode"
label: Privileged mode
schema:
type: boolean
default: false
- variable: readOnlyRootFilesystem
label: "ReadOnly Root Filesystem"
label: ReadOnly Root Filesystem
schema:
type: boolean
default: false
- variable: allowPrivilegeEscalation
label: "Allow Privilege Escalation"
label: Allow Privilege Escalation
schema:
type: boolean
default: false
- variable: runAsNonRoot
label: "runAsNonRoot"
label: runAsNonRoot
schema:
type: boolean
default: false
# Include{securityContextAdvanced}
# Include{podSecurityContextRoot}
- variable: runAsUser
label: "runAsUser"
description: "The UserID of the user running the application"
label: runAsUser
description: The UserID of the user running the application
schema:
type: int
default: 0
- variable: runAsGroup
label: "runAsGroup"
description: The groupID this App of the user running the application"
label: runAsGroup
description: The groupID this App of the user running the application
schema:
type: int
default: 0
- variable: fsGroup
label: "fsGroup"
description: "The group that should own ALL storage."
label: fsGroup
description: The group that should own ALL storage.
schema:
type: int
default: 568
@@ -0,0 +1,52 @@
{{/* Define the cronjob */}}
{{- define "plextraktsync.cronjob" -}}
{{- $jobName := include "tc.common.names.fullname" . }}
---
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ printf "%s-cronjob" $jobName }}
labels:
{{- include "tc.common.labels" . | nindent 4 }}
spec:
schedule: "{{ .Values.plexTraktSync.schedule }}"
concurrencyPolicy: Forbid
{{- with .Values.cronjob.failedJobsHistoryLimit }}
failedJobsHistoryLimit: {{ . }}
{{- end }}
{{- with .Values.cronjob.successfulJobsHistoryLimit }}
successfulJobsHistoryLimit: {{ . }}
{{- end }}
jobTemplate:
metadata:
spec:
template:
metadata:
spec:
securityContext:
runAsUser: 0
runAsGroup: 0
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}
securityContext:
privileged: false
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
runAsNonRoot: false
capabilities:
drop:
- ALL
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
command:
- plextraktsync
{{- if .Values.plexTraktSync.task }}
- {{ .Values.plexTraktSync.task }}
{{- else }}
- sync --sync=all
{{- end }}
resources:
{{ toYaml .Values.resources | indent 16 }}
{{- end -}}
@@ -1,2 +1,7 @@
{{- include "tc.common.loader.init" . }}
{{/* Render cronjob for clamav */}}
{{- include "plextraktsync.cronjob" . }}
{{/* Render the templates */}}
{{ include "tc.common.loader.all" . }}
{{ include "tc.common.loader.apply" . }}
+24 -5
View File
@@ -1,12 +1,23 @@
env: {}
image:
pullPolicy: IfNotPresent
repository: tccr.io/truecharts/plextraktsync
tag: latest@sha256:d76e19db77e87d4eea07c90baf43f5c37e9f4f41987aca1fa96bd52554beb7c7
persistence: {}
podSecurityContext:
runAsGroup: 0
runAsUser: 0
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
tty: true
stdin: true
plexTraktSync:
task: ""
schedule: "0 */6 * * *"
probes:
liveness:
enabled: false
@@ -14,9 +25,7 @@ probes:
enabled: false
startup:
enabled: false
securityContext:
readOnlyRootFilesystem: false
runAsNonRoot: false
service:
main:
enabled: false
@@ -24,5 +33,15 @@ service:
main:
enabled: false
persistence:
config:
enabled: true
mountPath: /app/config
portal:
enabled: false
cronjob:
annotations: {}
failedJobsHistoryLimit: 5
successfulJobsHistoryLimit: 2
+1
View File
@@ -145,6 +145,7 @@ words:
- plaxt
- playout
- plex
- plextraktsync
- preconfigured
- prefs
- preload