mirror of
https://github.com/truenas/charts.git
synced 2026-06-14 22:25:57 +08:00
Publish new changes in catalog
This commit is contained in:
@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
|
||||
annotations:
|
||||
title: MinIO
|
||||
type: application
|
||||
version: 2.0.0
|
||||
version: 2.0.1
|
||||
apiVersion: v2
|
||||
appVersion: "2023-03-13"
|
||||
kubeVersion: ">=1.16.0-0"
|
||||
@@ -23,9 +23,11 @@ def migrate_common_lib(values):
|
||||
'dnsConfig', 'updateStrategy', 'enableResourceLimits', 'cpuLimit',
|
||||
'memLimit', 'certificate', 'service', 'environmentVariables', 'minioDomain',
|
||||
'accessKey', 'secretKey', 'distributedMode', 'distributedIps', 'logsearchapi',
|
||||
'appVolumeMounts', 'extraAppVolumeMounts', 'postgresAppVolumeMounts'
|
||||
'appVolumeMounts', 'extraAppVolumeMounts', 'postgresAppVolumeMounts', 'runAsUser', 'runAsGroup',
|
||||
]
|
||||
|
||||
exportVol = migrate_volume(values['appVolumeMounts']['export'])
|
||||
exportVol['mountPath'] = values['appVolumeMounts']['export']['mountPath']
|
||||
values.update({
|
||||
# Migrate Config
|
||||
'minioConfig': {
|
||||
@@ -33,7 +35,7 @@ def migrate_common_lib(values):
|
||||
'rootPassword': values['secretKey'],
|
||||
'domain': values.get('minioDomain', ''),
|
||||
'extraArgs': values.get('extraArgs', []),
|
||||
'additionalEnvs': [e for e in values.get('environmentVariables', []) if e['name'] not in ['PLEX_UID', 'PLEX_GID'] ],
|
||||
'additionalEnvs': values.get('environmentVariables', []),
|
||||
},
|
||||
# Migrate Network
|
||||
'minioNetwork': {
|
||||
@@ -59,13 +61,11 @@ def migrate_common_lib(values):
|
||||
},
|
||||
# Migrate Storage
|
||||
'minioStorage': {
|
||||
'distributedMode': values['distributedMode']
|
||||
'distributedMode': values['distributedMode'],
|
||||
'distributedIps': values['distributedIps'] if values['distributedMode'] else [],
|
||||
'logSearchApi': values['logsearchapi']['enabled'],
|
||||
'logSearchDiskCapacityGB': values['logsearchapi']['diskCapacityGB'] if values['logsearchapi']['enabled'] else 5,
|
||||
'export': migrate_volume(values['appVolumeMounts']['export']).update({
|
||||
mountPath: values['appVolumeMounts']['export'][mountPath]
|
||||
}),
|
||||
'export': exportVol,
|
||||
'pgData': migrate_volume(values['postgresAppVolumeMounts']['postgres-data']),
|
||||
'pgBackup': migrate_volume(values['postgresAppVolumeMounts']['postgres-backup']),
|
||||
'additionalStorages': [
|
||||
@@ -87,7 +87,7 @@ def migrate_common_lib(values):
|
||||
|
||||
def migrate(values):
|
||||
# If this missing, we have already migrated
|
||||
if not 'nodePort' in values.keys():
|
||||
if not 'appVolumeMounts' in values.keys():
|
||||
return values
|
||||
|
||||
return migrate_common_lib(values)
|
||||
@@ -168,7 +168,7 @@ questions:
|
||||
label: Distributed Minio Instance URI(s)
|
||||
schema:
|
||||
type: list
|
||||
show_if: [["distributedMode", "==", true]]
|
||||
show_if: [["distributedMode", "=", true]]
|
||||
required: true
|
||||
default: []
|
||||
items:
|
||||
@@ -182,7 +182,7 @@ questions:
|
||||
description: The path to store Minio Export.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["distributedMode", "==", true]]
|
||||
show_if: [["distributedMode", "=", true]]
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
@@ -273,14 +273,14 @@ questions:
|
||||
label: Log Search Disk Capacity
|
||||
schema:
|
||||
type: int
|
||||
show_if: [["logSearchApi", "==", true]]
|
||||
show_if: [["logSearchApi", "=", true]]
|
||||
default: 5
|
||||
- variable: pgData
|
||||
label: Minio Postgres Data Storage
|
||||
description: The path to store Minio Postgres Data.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["logSearchApi", "==", true]]
|
||||
show_if: [["logSearchApi", "=", true]]
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
@@ -366,7 +366,7 @@ questions:
|
||||
description: The path to store Minio Postgres Backup.
|
||||
schema:
|
||||
type: dict
|
||||
show_if: [["logSearchApi", "==", true]]
|
||||
show_if: [["logSearchApi", "=", true]]
|
||||
attrs:
|
||||
- variable: type
|
||||
label: Type
|
||||
Reference in New Issue
Block a user