Upgraded catalog item(s)

This commit upgrades chia, minio, nextcloud catalog item(s).
This commit is contained in:
sonicaj committed 2021-07-08 14:14:38 +00:00
1 parent 2d75a1a94f
commit fb3edd8569
59 files changed
+75 -99

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()))))