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({
'appVolumeMounts': {
'transcode': { 'transcode': {
'hostPathEnabled': values['transcodeHostPathEnabled'], 'hostPathEnabled': values['transcodeHostPathEnabled'],
**({'hostPath': values['transcodeHostPath']} if values.get('transcodeHostPath') else {}) **({'hostPath': values['transcodeHostPath']} if values.get('transcodeHostPath') else {})
...@@ -12,5 +13,7 @@ def migrate(values): ...@@ -12,5 +13,7 @@ def migrate(values):
'hostPathEnabled': values['dataHostPathEnabled'], 'hostPathEnabled': values['dataHostPathEnabled'],
**({'hostPath': values['dataHostPath']} if values.get('dataHostPath') else {}) **({'hostPath': values['dataHostPath']} if values.get('dataHostPath') else {})
}, },
} },
'updateStrategy': values.get('strategyType', 'Recreate'),
})
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