mirror of
https://github.com/truenas/charts.git
synced 2026-11-14 06:48:09 +00:00
Update minio/plex migrations to use stdout/stdin
This commit is contained in:
1 parent
0d8d1111a0
commit
7db9059e25
2 files changed
+24
No files matched your search
Regular → Executable
+12
@@ -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]))))
|
||||
Reference in new issue
Block a user