mirror of
https://github.com/truenas/charts.git
synced 2026-04-23 18:10:06 +08:00
minio/charts: fix migration (#2368)
* minio: fix migration * remove test code
This commit is contained in:
@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
|
||||
annotations:
|
||||
title: MinIO
|
||||
type: application
|
||||
version: 2.0.4
|
||||
version: 2.0.5
|
||||
apiVersion: v2
|
||||
appVersion: "2023-03-13"
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
|
||||
@@ -26,8 +26,11 @@ def migrate_common_lib(values):
|
||||
'appVolumeMounts', 'extraAppVolumeMounts', 'postgresAppVolumeMounts', 'runAsUser', 'runAsGroup',
|
||||
]
|
||||
|
||||
exportVol = migrate_volume(values['appVolumeMounts']['export'])
|
||||
exportVol['mountPath'] = values['appVolumeMounts']['export']['mountPath']
|
||||
exportVol = {}
|
||||
if not values['distributedMode']:
|
||||
exportVol = migrate_volume(values['appVolumeMounts']['export'])
|
||||
exportVol['mountPath'] = values['appVolumeMounts']['export']['mountPath']
|
||||
|
||||
values.update({
|
||||
# Migrate Config
|
||||
'minioConfig': {
|
||||
@@ -87,7 +90,7 @@ def migrate_common_lib(values):
|
||||
|
||||
def migrate(values):
|
||||
# If this missing, we have already migrated
|
||||
if not 'appVolumeMounts' in values.keys():
|
||||
if not 'accessKey' in values.keys():
|
||||
return values
|
||||
|
||||
return migrate_common_lib(values)
|
||||
|
||||
Reference in New Issue
Block a user