Publish new changes in catalog

This commit is contained in:
sonicaj
2024-03-20 17:09:26 +00:00
parent c017f7d006
commit cca142535a
23 changed files with 13 additions and 13 deletions

View File

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

View File

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

View File

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