mirror of
https://github.com/truenas/charts.git
synced 2026-04-04 03:08:33 +08:00
Publish new changes in catalog
This commit is contained in:
@@ -4,7 +4,7 @@ description: A file sharing server that puts the control and security of your ow
|
||||
annotations:
|
||||
title: Nextcloud
|
||||
type: application
|
||||
version: 2.0.1
|
||||
version: 2.0.2
|
||||
apiVersion: v2
|
||||
appVersion: 29.0.0
|
||||
kubeVersion: '>=1.16.0-0'
|
||||
@@ -93,13 +93,18 @@ def migrate_common_lib(values):
|
||||
return values
|
||||
|
||||
def migrate(values):
|
||||
if 'isDataInTheSameVolume' in values.keys():
|
||||
if 'isDataInTheSameVolume' in values.keys() or 'shouldShowStorageToggle' in values.keys():
|
||||
values['ncStorage']['isDataInTheSameVolume'] = values.pop('isDataInTheSameVolume', True)
|
||||
values['ncStorage']['shouldShowStorageToggle'] = values.pop('shouldShowStorageToggle', True)
|
||||
return values
|
||||
|
||||
# If this missing, we have already migrated
|
||||
if not 'appVolumeMounts' in values.keys():
|
||||
# If 'shouldFixMigration' missing, we should fix migration and then add the key
|
||||
if not 'migrationFixed' in values['ncStorage'].keys():
|
||||
values['ncStorage']['shouldShowStorageToggle'] = True
|
||||
values['ncStorage']['isDataInTheSameVolume'] = True
|
||||
values['ncStorage']['migrationFixed'] = True
|
||||
return values
|
||||
|
||||
|
||||
@@ -254,6 +254,13 @@ questions:
|
||||
type: boolean
|
||||
default: false
|
||||
hidden: true
|
||||
# Dummy variable so we can skip "fixing" migration on new installations
|
||||
- variable: migrationFixed
|
||||
label: ""
|
||||
schema:
|
||||
type: boolean
|
||||
default: true
|
||||
hidden: true
|
||||
- variable: isDataInTheSameVolume
|
||||
label: "Pre v2 Storage Structure (See the tooltip for more information)"
|
||||
description: |
|
||||
Reference in New Issue
Block a user