Publish new changes in catalog

This commit is contained in:
sonicaj
2024-05-03 11:23:26 +00:00
parent 7804445280
commit 94e2cf477d
30 changed files with 14 additions and 2 deletions

View File

@@ -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'

View File

@@ -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

View File

@@ -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: |