mirror of
https://github.com/truenas/charts.git
synced 2026-04-13 10:39:46 +08:00
Update minio/plex migrations to use stdout/stdin
This commit is contained in:
12
test/plex/1.0.1/migrations/migrate.py → test/plex/1.0.1/migrations/migrate
Normal file → Executable file
12
test/plex/1.0.1/migrations/migrate.py → test/plex/1.0.1/migrations/migrate
Normal file → Executable 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]))))
|
||||
Reference in New Issue
Block a user