mirror of
https://github.com/truenas/charts.git
synced 2026-11-28 23:06:17 +08:00
adds 2 community apps for testing (smb-pv-pvc) (#1558)
* make copies to test * adds 2 community apps for testing (smb-pv-pvc)
This commit is contained in:
1
library/ix-dev/test/sonarr/templates/NOTES.txt
Normal file
1
library/ix-dev/test/sonarr/templates/NOTES.txt
Normal file
@@ -0,0 +1 @@
|
||||
{{ include "ix.v1.common.lib.chart.notes" $ }}
|
||||
12
library/ix-dev/test/sonarr/templates/_portal.tpl
Normal file
12
library/ix-dev/test/sonarr/templates/_portal.tpl
Normal file
@@ -0,0 +1,12 @@
|
||||
{{- define "sonarr.portal" -}}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: portal
|
||||
data:
|
||||
path: "/"
|
||||
port: {{ .Values.sonarrNetwork.webPort | quote }}
|
||||
protocol: http
|
||||
host: $node_ip
|
||||
{{- end -}}
|
||||
112
library/ix-dev/test/sonarr/templates/_sonarr.tpl
Normal file
112
library/ix-dev/test/sonarr/templates/_sonarr.tpl
Normal file
@@ -0,0 +1,112 @@
|
||||
{{- define "sonarr.workload" -}}
|
||||
workload:
|
||||
sonarr:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: Deployment
|
||||
podSpec:
|
||||
hostNetwork: {{ .Values.sonarrNetwork.hostNetwork }}
|
||||
containers:
|
||||
sonarr:
|
||||
enabled: true
|
||||
primary: true
|
||||
imageSelector: image
|
||||
securityContext:
|
||||
runAsUser: {{ .Values.sonarrRunAs.user }}
|
||||
runAsGroup: {{ .Values.sonarrRunAs.group }}
|
||||
env:
|
||||
SONARR__PORT: {{ .Values.sonarrNetwork.webPort }}
|
||||
SONARR__INSTANCE_NAME: {{ .Values.sonarrConfig.instanceName }}
|
||||
{{ with .Values.sonarrConfig.additionalEnvs }}
|
||||
envList:
|
||||
{{ range $env := . }}
|
||||
- name: {{ $env.name }}
|
||||
value: {{ $env.value }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
probes:
|
||||
liveness:
|
||||
enabled: true
|
||||
type: http
|
||||
port: "{{ .Values.sonarrNetwork.webPort }}"
|
||||
path: /ping
|
||||
readiness:
|
||||
enabled: true
|
||||
type: http
|
||||
port: "{{ .Values.sonarrNetwork.webPort }}"
|
||||
path: /ping
|
||||
startup:
|
||||
enabled: true
|
||||
type: http
|
||||
port: "{{ .Values.sonarrNetwork.webPort }}"
|
||||
path: /ping
|
||||
initContainers:
|
||||
{{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions"
|
||||
"UID" .Values.sonarrRunAs.user
|
||||
"GID" .Values.sonarrRunAs.group
|
||||
"mode" "check"
|
||||
"type" "init") | nindent 8 }}
|
||||
|
||||
{{/* Service */}}
|
||||
service:
|
||||
sonarr:
|
||||
enabled: true
|
||||
primary: true
|
||||
type: NodePort
|
||||
targetSelector: sonarr
|
||||
ports:
|
||||
webui:
|
||||
enabled: true
|
||||
primary: true
|
||||
port: {{ .Values.sonarrNetwork.webPort }}
|
||||
nodePort: {{ .Values.sonarrNetwork.webPort }}
|
||||
targetSelector: sonarr
|
||||
|
||||
{{/* Persistence */}}
|
||||
persistence:
|
||||
config:
|
||||
enabled: true
|
||||
type: {{ .Values.sonarrStorage.config.type }}
|
||||
datasetName: {{ .Values.sonarrStorage.config.datasetName | default "" }}
|
||||
hostPath: {{ .Values.sonarrStorage.config.hostPath | default "" }}
|
||||
targetSelector:
|
||||
sonarr:
|
||||
sonarr:
|
||||
mountPath: /config
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories/config
|
||||
tmp:
|
||||
enabled: true
|
||||
type: emptyDir
|
||||
targetSelector:
|
||||
sonarr:
|
||||
sonarr:
|
||||
mountPath: /tmp
|
||||
{{- range $idx, $storage := .Values.sonarrStorage.additionalStorages }}
|
||||
{{ printf "sonarr-%v" (int $idx) }}:
|
||||
{{- $size := "" -}}
|
||||
{{- if $storage.size -}}
|
||||
{{- $size = (printf "%vGi" $storage.size) -}}
|
||||
{{- end }}
|
||||
enabled: true
|
||||
type: {{ $storage.type }}
|
||||
datasetName: {{ $storage.datasetName | default "" }}
|
||||
hostPath: {{ $storage.hostPath | default "" }}
|
||||
server: {{ $storage.server | default "" }}
|
||||
share: {{ $storage.share | default "" }}
|
||||
domain: {{ $storage.domain | default "" }}
|
||||
username: {{ $storage.username | default "" }}
|
||||
password: {{ $storage.password | default "" }}
|
||||
size: {{ $size }}
|
||||
{{- if eq $storage.type "smb-pv-pvc" }}
|
||||
mountOptions:
|
||||
- key: noperm
|
||||
{{- end }}
|
||||
targetSelector:
|
||||
sonarr:
|
||||
sonarr:
|
||||
mountPath: {{ $storage.mountPath }}
|
||||
01-permissions:
|
||||
mountPath: /mnt/directories{{ $storage.mountPath }}
|
||||
{{- end }}
|
||||
{{- end -}}
|
||||
9
library/ix-dev/test/sonarr/templates/common.yaml
Normal file
9
library/ix-dev/test/sonarr/templates/common.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- include "ix.v1.common.loader.init" . -}}
|
||||
|
||||
{{/* Merge the templates with Values */}}
|
||||
{{- $_ := mustMergeOverwrite .Values (include "sonarr.workload" $ | fromYaml) -}}
|
||||
|
||||
{{/* Create the configmap for portal manually*/}}
|
||||
{{- include "sonarr.portal" $ -}}
|
||||
|
||||
{{- include "ix.v1.common.loader.apply" . -}}
|
||||
Reference in New Issue
Block a user