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
17966e29
Commit
17966e29
authored
Feb 03, 2021
by
Waqar Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update plex chart format
parent
1e7b1845
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
159 additions
and
145 deletions
+159
-145
test/plex/1.0.1/migrations/migrate.py
test/plex/1.0.1/migrations/migrate.py
+16
-0
test/plex/1.0.1/questions.yaml
test/plex/1.0.1/questions.yaml
+137
-106
test/plex/1.0.1/templates/deployment.yaml
test/plex/1.0.1/templates/deployment.yaml
+6
-39
No files found.
test/plex/1.0.1/migrations/migrate.py
0 → 100644
View file @
17966e29
def
migrate
(
values
):
values
[
'appVolumeMounts'
]
=
{
'transcode'
:
{
'hostPathEnabled'
:
values
[
'transcodeHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'transcodeHostPath'
]}
if
values
.
get
(
'transcodeHostPath'
)
else
{})
},
'config'
:
{
'hostPathEnabled'
:
values
[
'configHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'configHostPath'
]}
if
values
.
get
(
'configHostPath'
)
else
{})
},
'data'
:
{
'hostPathEnabled'
:
values
[
'dataHostPathEnabled'
],
**
({
'hostPath'
:
values
[
'dataHostPath'
]}
if
values
.
get
(
'dataHostPath'
)
else
{})
},
}
return
values
test/plex/1.0.1/questions.yaml
View file @
17966e29
...
...
@@ -141,122 +141,153 @@ questions:
max
:
65535
default
:
32400
-
variable
:
transcodeHostPathEnabled
label
:
"
Configure
Host
Path
for
Transcode"
group
:
"
Storage"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
transcodeHostPath
label
:
"
Specify
HostPath
for
Transcode"
# Specify GPU configuration
-
variable
:
gpuConfiguration
label
:
"
GPU
Configuration"
group
:
"
Resource
Reservation"
schema
:
type
:
hostpath
required
:
true
type
:
dict
$ref
:
-
"
definitions/gpuConfiguration"
-
variable
:
transcodeVolume
label
:
"
Transcode
Volume
Defaults
"
-
variable
:
appVolumeMounts
label
:
"
Plex
Storage
"
group
:
"
Storage"
schema
:
type
:
dict
show_if
:
[[
"
transcodeHostPathEnabled"
,
"
="
,
false
]]
attrs
:
-
variable
:
transcode
label
:
"
Transcode
Volume"
schema
:
type
:
dict
attrs
:
-
variable
:
datasetName
label
:
"
Plex
Transcode
Volume
Dataset
Name"
schema
:
type
:
string
$ref
:
-
"
normalize/ixVolume"
attrs
:
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
mountPath
label
:
"
Mount
Path"
label
:
"
Plex
Transcode
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/transcode"
-
variable
:
datasetName
label
:
"
Transcode
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_transcode"
editable
:
false
-
variable
:
dataHostPathEnabled
label
:
"
Configure
Host
Path
for
Data"
group
:
"
Storage"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Transcode
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
dataH
ostPath
label
:
"
Specify
HostPath
for
Data
"
-
variable
:
h
ostPath
label
:
"
Host
Path
for
Plex
Transcode
Volume
"
schema
:
type
:
hostpath
required
:
true
-
variable
:
dataVolume
label
:
"
Data
Volume
Defaults"
group
:
"
Storage"
-
variable
:
data
label
:
"
Data
Volume"
schema
:
type
:
dict
show_if
:
[[
"
dataHostPathEnabled"
,
"
="
,
false
]]
attrs
:
-
variable
:
datasetName
label
:
"
Plex
Data
Volume
Dataset
Name"
schema
:
type
:
string
$ref
:
-
"
normalize/ixVolume"
attrs
:
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
ix-plex_data"
editable
:
false
-
variable
:
mountPath
label
:
"
Mount
Path"
label
:
"
Plex
Data
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/data"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Data
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
hostPath
label
:
"
Host
Path
for
Plex
Data
Volume"
schema
:
type
:
hostpath
required
:
true
-
variable
:
config
label
:
"
Config
Volume"
schema
:
type
:
dict
attrs
:
-
variable
:
datasetName
label
:
"
Data
Dataset
Name"
label
:
"
Plex
Config
Volume
Dataset
Name"
schema
:
type
:
string
default
:
"
ix-plex_data"
$ref
:
-
"
normalize/ixVolume"
show_if
:
[[
"
hostPathEnabled"
,
"
="
,
false
]]
default
:
"
ix-plex_config"
editable
:
false
-
variable
:
configHostPathEnabled
label
:
"
Configure
Host
Path
for
Config"
group
:
"
Storage"
-
variable
:
mountPath
label
:
"
Plex
Config
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/config"
-
variable
:
hostPathEnabled
label
:
"
Enable
Host
Path
for
Plex
Config
Volume"
schema
:
type
:
boolean
default
:
false
show_subquestions_if
:
true
subquestions
:
-
variable
:
configH
ostPath
label
:
"
Specify
HostPath
for
Config
"
-
variable
:
h
ostPath
label
:
"
Host
Path
for
Plex
Config
Volume
"
schema
:
type
:
hostpath
required
:
true
-
variable
:
configVolume
label
:
"
Configuration
Volume
Defaults"
group
:
"
Storage"
-
variable
:
shared
label
:
"
Shared
Volume"
schema
:
type
:
dict
show_if
:
[[
"
configHostPathEnabled"
,
"
="
,
false
]]
$ref
:
-
"
normalize/ixVolume"
attrs
:
-
variable
:
emptyDir
label
:
"
Temporary
Volume"
schema
:
type
:
boolean
default
:
true
editable
:
false
-
variable
:
mountPath
label
:
"
Mount
Path"
label
:
"
Plex
Shared
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
path
editable
:
false
default
:
"
/config
"
-
variable
:
datasetName
label
:
"
Configuration
Dataset
Na
me"
default
:
"
/shared
"
-
variable
:
shared-logs
label
:
"
Shared
Logs
Volu
me"
schema
:
type
:
string
default
:
"
ix-plex_config"
type
:
dict
attrs
:
-
variable
:
emptyDir
label
:
"
Temporary
Volume"
schema
:
type
:
boolean
default
:
true
editable
:
false
# Specify GPU configuration
-
variable
:
gpuConfiguration
label
:
"
GPU
Configuration"
group
:
"
Resource
Reservation"
-
variable
:
mountPath
label
:
"
Plex
Shared
Logs
Mount
Path"
description
:
"
Path
where
the
volume
will
be
mounted
inside
the
pod"
schema
:
type
:
dict
$ref
:
-
"
definitions/gpuConfiguration
"
type
:
path
editable
:
false
default
:
"
/config/Library/Application
Support/Plex
Media
Server/Logs
"
test/plex/1.0.1/templates/deployment.yaml
View file @
17966e29
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
{{
include "common.names.fullname" .
}}
labels
:
{{
include "common.labels" . | nindent 4
}}
spec
:
replicas
:
1
revisionHistoryLimit
:
3
strategy
:
type
:
{{
.Values.strategyType
}}
selector
:
matchLabels
:
{{
include "common.labels.selectorLabels" . | nindent 6
}}
template
:
metadata
:
labels
:
{{
include "common.labels.selectorLabels" . | nindent 8
}}
annotations
:
{{
include "common.annotations" . | nindent 8
}}
{{
include "common.deployment.metadata" . | nindent 0
}}
spec
:
{{
include "common.deployment.common_spec" . | nindent 2
}}
template
:
{{
include "common.deployment.pod.metadata" . | nindent 4
}}
spec
:
{{
- if .Values.hostNetwork
}}
hostNetwork
:
{{
.Values.hostNetwork
}}
...
...
@@ -22,6 +11,8 @@ spec:
containers
:
-
name
:
{{
.Chart.Name
}}
{{
include "common.containers.imageConfig" .Values.image | nindent 10
}}
{{
include "common.storage.allContainerVolumeMounts" .Values | nindent 10
}}
{{
include "common.containers.gpuConfiguration" .Values | nindent 10
}}
ports
:
-
name
:
pms
protocol
:
TCP
...
...
@@ -77,28 +68,4 @@ spec:
initialDelaySeconds
:
5
failureThreshold
:
40
periodSeconds
:
15
volumeMounts
:
-
name
:
data
mountPath
:
/data
-
name
:
config
mountPath
:
/config
-
name
:
transcode
mountPath
:
/transcode
-
name
:
shared
mountPath
:
/shared
-
name
:
shared-logs
mountPath
:
"
/config/Library/Application
Support/Plex
Media
Server/Logs"
{{
- if .Values.gpuConfiguration
}}
resources
:
limits
:
{{
- toYaml .Values.gpuConfiguration | nindent 14
}}
{{
- end
}}
volumes
:
{{
$emptyDir
:
= .Values.emptyDirVolumes
}}
{{
$vols
:
= list
}}
{{
$vols = mustAppend $vols (dict "name" "data" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.dataHostPathEnabled "pathField" .Values.dataHostPath "datasetName" (.Values.dataVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "config" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.configHostPathEnabled "pathField" .Values.configHostPath "datasetName" (.Values.configVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "transcode" "emptyDirVolumes" $emptyDir "hostPathEnabled" .Values.transcodeHostPathEnabled "pathField" .Values.transcodeHostPath "datasetName" (.Values.transcodeVolume | default dict).datasetName )
}}
{{
$vols = mustAppend $vols (dict "name" "shared" "emptyDirVolumes" true "hostPathEnabled" false "pathField" nil "datasetName" nil)
}}
{{
$vols = mustAppend $vols (dict "name" "shared-logs" "emptyDirVolumes" true "hostPathEnabled" false "pathField" nil "datasetName" nil)
}}
{{
include "common.storage.volumesConfiguration" (dict "ixVolumes" .Values.ixVolumes "volumes" $vols) | nindent 8
}}
{{
include "common.storage.allAppVolumes" .Values | nindent 6
}}
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