Update minio/plex migrations to use stdout/stdin

This commit is contained in:
Waqar Ahmed
2021-02-03 19:26:48 +05:00
parent 0d8d1111a0
commit 7db9059e25
2 changed files with 24 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
#!/usr/bin/python3
import json
import sys
def migrate(values):
values.update({
'appVolumeMounts': {
@@ -17,3 +22,10 @@ def migrate(values):
'updateStrategy': values.get('strategyType', 'Recreate'),
})
return values
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(1)
print(json.dumps(migrate(json.loads(sys.argv[1]))))