Upgraded catalog item(s)

This commit upgrades chia, machinaris, minio, nextcloud catalog item(s).
This commit is contained in:
sonicaj authored and Waqar Ahmed committed 2021-09-03 19:16:38 +05:00
1 parent 281d54bb65
commit 8e1b81dfc2
138 files changed
+32 -32

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
#!/usr/bin/python3
import json
import os
import sys
def migrate(values):
values.update({
'appVolumeMounts': {
'nextcloud-data': {
'hostPathEnabled': values['nextcloudDataHostPathEnabled'],
**({'hostPath': values['nextcloudHostPath']} if values.get('nextcloudHostPath') else {})
},
},
'updateStrategy': values.get('nextcloud').get('strategy', 'Recreate'),
})
return values
if __name__ == '__main__':
if len(sys.argv) != 2:
exit(1)
if os.path.exists(sys.argv[1]):
with open(sys.argv[1], 'r') as f:
print(json.dumps(migrate(json.loads(f.read()))))