Update minio/plex migrations to use stdout/stdin

This commit is contained in:
Waqar Ahmed committed 2021-02-03 20:13:10 +05:00
1 parent 0d8d1111a0
commit 7db9059e25
2 files changed
+24

No files matched your search

@@ -1,3 +1,8 @@
#!/usr/bin/python3
import json
import sys
def migrate(values):
values.update({
'appVolumeMounts': {
@@ -8,3 +13,10 @@ def migrate(values):
},
})
return values
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(1)
print(json.dumps(migrate(json.loads(sys.argv[1]))))
+12
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]))))