mirror of
https://github.com/truenas/charts.git
synced 2026-11-13 22:47:10 +00:00
Update catalog information
This commit is contained in:
1 parent
85d2fab14d
commit
0430895bfa
428 files changed
+672
-104
No files matched your search
File renamed without changes.
@@ -3,7 +3,7 @@ description: Mumble is a free, open source, low latency, high quality voice chat
|
||||
annotations:
|
||||
title: Mumble
|
||||
type: application
|
||||
version: 1.0.1
|
||||
version: 1.0.2
|
||||
apiVersion: v2
|
||||
appVersion: 'v1.4.230'
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -25,5 +25,4 @@ mumbleNetwork:
|
||||
mumbleStorage:
|
||||
data:
|
||||
type: ixVolume
|
||||
hostPath: ''
|
||||
datasetName: data
|
||||
File renamed without changes.
Executable
+29
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/python3
|
||||
import json
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def migrate(values):
|
||||
storageKey = 'mumbleStorage'
|
||||
storages = ['data']
|
||||
|
||||
|
||||
for storage in storages:
|
||||
check_val = values.get(storageKey, {}).get(storage, {})
|
||||
if not isinstance(check_val, dict) or not check_val or check_val.get('type', 'hostPath') == 'hostPath':
|
||||
continue
|
||||
|
||||
values[storageKey][storage] = {key: value for key, value in check_val.items() if key != 'hostPath'}
|
||||
|
||||
|
||||
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()))))
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user