Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Charts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
魏国强
Charts
Commits
bd0a06c0
Commit
bd0a06c0
authored
Dec 08, 2020
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly setup persistence values
parent
725ee078
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
130 deletions
+130
-130
test/plex/2.1.0/questions.yaml
test/plex/2.1.0/questions.yaml
+106
-114
test/plex/2.1.0/templates/_storage.tpl
test/plex/2.1.0/templates/_storage.tpl
+9
-9
test/plex/2.1.0/templates/deployment.yaml
test/plex/2.1.0/templates/deployment.yaml
+12
-0
test/plex/2.1.0/values.yaml
test/plex/2.1.0/values.yaml
+3
-7
No files found.
test/plex/2.1.0/questions.yaml
View file @
bd0a06c0
...
...
@@ -144,35 +144,27 @@ questions:
max
:
65535
default
:
32400
# Persistence
-
variable
:
persistence
label
:
"
Configure
Persistent
Storage"
group
:
"
Storage"
schema
:
type
:
dict
attrs
:
-
variable
:
transcode
label
:
"
Configure
Transcode
Storage"
schema
:
type
:
dict
attrs
:
-
variable
:
hostPathEnabled
-
variable
:
transcodeHostPathEnabled
label
:
"
Configure
Host
Path
for
Transcode"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostP
ath
-
variable
:
transcodeHostp
ath
label
:
"
Specify
HostPath
for
Transcode"
group
:
"
Storage"
schema
:
type
:
hostpath
required
:
true
-
variable
:
volume
-
variable
:
transcodeVolume
label
:
"
Configure
iXVolume"
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
h
ostPathEnabled"
,
"
="
,
false
]]
show_if
:
[[
"
transcodeH
ostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
...
...
@@ -189,28 +181,28 @@ questions:
type
:
string
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
data
label
:
"
Configure
Data
Storage"
schema
:
type
:
dict
attrs
:
-
variable
:
hostPathEnabled
-
variable
:
dataHostPathEnabled
label
:
"
Configure
Host
Path
for
Data"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
group
:
"
Storage"
subquestions
:
-
variable
:
h
ostPath
-
variable
:
dataH
ostPath
label
:
"
Specify
HostPath
for
Data"
schema
:
type
:
hostpath
required
:
true
-
variable
:
volume
label
:
"
Configure
iXVolume"
-
variable
:
dataVolume
label
:
"
Configure
data
iXVolume"
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
h
ostPathEnabled"
,
"
="
,
false
]]
show_if
:
[[
"
dataH
ostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
...
...
@@ -227,28 +219,28 @@ questions:
type
:
string
default
:
"
ix-plex_data"
editable
:
false
-
variable
:
config
label
:
"
Configure
Config
Storage"
schema
:
type
:
dict
attrs
:
-
variable
:
hostPathEnabled
-
variable
:
configHostPathEnabled
label
:
"
Configure
Host
Path
for
Config"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
h
ostPath
-
variable
:
configH
ostPath
label
:
"
Specify
HostPath
for
Config"
group
:
"
Storage"
schema
:
type
:
hostpath
required
:
true
-
variable
:
volume
-
variable
:
configVolume
label
:
"
Configure
iXVolume"
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
h
ostPathEnabled"
,
"
="
,
false
]]
show_if
:
[[
"
configH
ostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
...
...
test/plex/2.1.0/templates/_storage.tpl
View file @
bd0a06c0
...
...
@@ -15,10 +15,10 @@ Retrieve host path for transcode
Let
'
s
please
remove
the
redundancy
*/
}
}
{{- define "configuredHostPathTranscode" -}}
{{- if .Values.
persistence.transcode.h
ostPathEnabled -}}
{{- .Values.
persistence.transcode.h
ostPath -}}
{{- if .Values.
transcodeH
ostPathEnabled -}}
{{- .Values.
transcodeH
ostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.transcode.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
transcodeV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
...
...
@@ -28,10 +28,10 @@ Retrieve host path for data
Let
'
s
please
remove
the
redundancy
*/
}
}
{{- define "configuredHostPathData" -}}
{{- if .Values.
persistence.data.h
ostPathEnabled -}}
{{- .Values.
persistence.data.h
ostPath -}}
{{- if .Values.
dataH
ostPathEnabled -}}
{{- .Values.
dataH
ostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.data.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
dataV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
...
...
@@ -41,10 +41,10 @@ Retrieve host path for transcode
Let
'
s
please
remove
the
redundancy
*/
}
}
{{- define "configuredHostPathConfig" -}}
{{- if .Values.
persistence.config.h
ostPathEnabled -}}
{{- .Values.
persistence.config.h
ostPath -}}
{{- if .Values.
configH
ostPathEnabled -}}
{{- .Values.
configH
ostPath -}}
{{- else -}}
{{- $volDict := dict "datasetName" $.Values.
persistence.config.v
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- $volDict := dict "datasetName" $.Values.
configV
olume.datasetName "ixVolumes" $.Values.ixVolumes -}}
{{- include "retrieveHostPathFromiXVolume" $volDict -}}
{{- end -}}
{{- end -}}
test/plex/2.1.0/templates/deployment.yaml
View file @
bd0a06c0
...
...
@@ -143,14 +143,26 @@ spec:
{{
- end
}}
volumes
:
-
name
:
data
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
path
:
{{
template "configuredHostPathData" .
}}
{{
- end
}}
-
name
:
config
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
path
:
{{
template "configuredHostPathConfig" .
}}
{{
- end
}}
-
name
:
transcode
{{
- if .Values.emptyDirVolumes
}}
emptyDir
:
{}
{{
- else
}}
hostPath
:
path
:
{{
template "configuredHostPathTranscode" .
}}
{{
- end
}}
-
name
:
shared
emptyDir
:
{}
-
name
:
shared-logs
...
...
test/plex/2.1.0/values.yaml
View file @
bd0a06c0
...
...
@@ -57,13 +57,9 @@ plexServiceTCP:
hostNetwork
:
false
persistence
:
transcode
:
hostPathEnabled
:
false
data
:
hostPathEnabled
:
false
config
:
hostPathEnabled
:
false
transcodeHostPathEnabled
:
false
dataHostPathEnabled
:
false
configHostPathEnabled
:
false
proxy
:
# This allows to set a proxy environment variable, which PMS uses to fetch the token and assets like movie cover
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment