Commit 9bcb41d9 authored by Waqar Ahmed's avatar Waqar Ahmed

Update plex migration to use updateStrategy

parent de0e83ad
def migrate(values): def migrate(values):
values['appVolumeMounts'] = { values.update({
'transcode': { 'appVolumeMounts': {
'hostPathEnabled': values['transcodeHostPathEnabled'], 'transcode': {
**({'hostPath': values['transcodeHostPath']} if values.get('transcodeHostPath') else {}) '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': { 'updateStrategy': values.get('strategyType', 'Recreate'),
'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 return values
...@@ -113,7 +113,7 @@ questions: ...@@ -113,7 +113,7 @@ questions:
- "definitions/timezone" - "definitions/timezone"
# Update strategy # Update strategy
- variable: strategyType - variable: updateStrategy
description: "Upgrade Policy" description: "Upgrade Policy"
label: "Update Strategy" label: "Update Strategy"
group: "Scaling/Upgrade Policy" group: "Scaling/Upgrade Policy"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment