mirror of
https://github.com/truenas/charts.git
synced 2026-05-12 11:36:10 +08:00
Update plex migration to use updateStrategy
This commit is contained in:
@@ -1,16 +1,19 @@
|
||||
def migrate(values):
|
||||
values['appVolumeMounts'] = {
|
||||
'transcode': {
|
||||
'hostPathEnabled': values['transcodeHostPathEnabled'],
|
||||
**({'hostPath': values['transcodeHostPath']} if values.get('transcodeHostPath') else {})
|
||||
values.update({
|
||||
'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 {})
|
||||
},
|
||||
},
|
||||
'config': {
|
||||
'hostPathEnabled': values['configHostPathEnabled'],
|
||||
**({'hostPath': values['configHostPath']} if values.get('configHostPath') else {})
|
||||
},
|
||||
'data': {
|
||||
'hostPathEnabled': values['dataHostPathEnabled'],
|
||||
**({'hostPath': values['dataHostPath']} if values.get('dataHostPath') else {})
|
||||
},
|
||||
}
|
||||
'updateStrategy': values.get('strategyType', 'Recreate'),
|
||||
})
|
||||
return values
|
||||
|
||||
@@ -113,7 +113,7 @@ questions:
|
||||
- "definitions/timezone"
|
||||
|
||||
# Update strategy
|
||||
- variable: strategyType
|
||||
- variable: updateStrategy
|
||||
description: "Upgrade Policy"
|
||||
label: "Update Strategy"
|
||||
group: "Scaling/Upgrade Policy"
|
||||
|
||||
Reference in New Issue
Block a user