diff --git a/enterprise/minio/1.0.24/Chart.lock b/enterprise/minio/1.0.24/Chart.lock deleted file mode 100644 index 4bf65bf146..0000000000 --- a/enterprise/minio/1.0.24/Chart.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../common - version: 1.2.2 -digest: sha256:fb077cb81f6acecd5c9e6adc22a18e156f780cd78f27198cdb47810f95364b56 -generated: "2023-11-09T15:45:47.242411019+02:00" diff --git a/enterprise/minio/1.0.24/charts/common-1.2.2.tgz b/enterprise/minio/1.0.24/charts/common-1.2.2.tgz deleted file mode 100644 index 6a22173c74..0000000000 Binary files a/enterprise/minio/1.0.24/charts/common-1.2.2.tgz and /dev/null differ diff --git a/enterprise/minio/1.0.24/ci/snmd-logsearch-values.yaml b/enterprise/minio/1.0.24/ci/snmd-logsearch-values.yaml deleted file mode 100644 index 3c13baae4e..0000000000 --- a/enterprise/minio/1.0.24/ci/snmd-logsearch-values.yaml +++ /dev/null @@ -1,43 +0,0 @@ -# When inside the versioned minio folder, run: -# helm dependency update -# helm template -f ix_values.yaml -f ci/logsearch-values.yaml . - -# Always use a unique hostPath for each test - -minioCreds: - rootUser: minio_test - rootPass: minio_test - -minioMultiMode: - - /data{1...4} - -minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" - mountPath: /data1 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data2 - datasetName: "" - mountPath: /data2 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data3 - datasetName: "" - mountPath: /data3 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data4 - datasetName: "" - mountPath: /data4 - -minioLogging: - logsearch: - enabled: true - diskCapacityGB: 5 - pgData: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_data - datasetName: "" - pgBackup: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_backup - datasetName: "" diff --git a/enterprise/minio/1.0.24/migrations/migrate b/enterprise/minio/1.0.24/migrations/migrate deleted file mode 100755 index 4ad8ff5f66..0000000000 --- a/enterprise/minio/1.0.24/migrations/migrate +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys - - -def migrate(values): - storageKey = 'minioLogging' - storageSubKey = 'logsearch' - storages = ['pgData', 'pgData'] - - for storage in storages: - check_val = values.get(storageKey, {}).get(storageSubKey, {}).get(storage, {}) - if not isinstance(check_val, dict) or not check_val or check_val.get('type', 'hostPath') == 'hostPath': - continue - - values[storageKey][storageSubKey][storage] = {key: value for key, value in check_val.items() if key != 'hostPath'} - - - return values - - -if __name__ == '__main__': - if len(sys.argv) != 2: - exit(1) - - if os.path.exists(sys.argv[1]): - with open(sys.argv[1], 'r') as f: - print(json.dumps(migrate(json.loads(f.read())))) diff --git a/enterprise/minio/1.1.0/Chart.lock b/enterprise/minio/1.1.0/Chart.lock new file mode 100644 index 0000000000..4a156de2e3 --- /dev/null +++ b/enterprise/minio/1.1.0/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: common + repository: file://../../../common + version: 1.2.6 +digest: sha256:956cef64e364b567d2e5327a00e60b68f3ef765e003d6c35afc143bb81ecc26b +generated: "2024-01-02T19:33:31.872916193+02:00" diff --git a/enterprise/minio/1.0.24/Chart.yaml b/enterprise/minio/1.1.0/Chart.yaml similarity index 90% rename from enterprise/minio/1.0.24/Chart.yaml rename to enterprise/minio/1.1.0/Chart.yaml index 5ea5d2f62c..00c796ff51 100644 --- a/enterprise/minio/1.0.24/Chart.yaml +++ b/enterprise/minio/1.1.0/Chart.yaml @@ -3,9 +3,9 @@ description: High Performance, Kubernetes Native Object Storage annotations: title: MinIO type: application -version: 1.0.24 +version: 1.1.0 apiVersion: v2 -appVersion: '2023-03-24' +appVersion: '2023-12-07' kubeVersion: '>=1.16.0-0' maintainers: - name: truenas @@ -14,7 +14,7 @@ maintainers: dependencies: - name: common repository: file://../../../common - version: 1.2.2 + version: 1.2.6 home: https://min.io icon: https://media.sys.truenas.net/apps/minio/icons/icon.png sources: diff --git a/enterprise/minio/1.0.24/README.md b/enterprise/minio/1.1.0/README.md similarity index 100% rename from enterprise/minio/1.0.24/README.md rename to enterprise/minio/1.1.0/README.md diff --git a/enterprise/minio/1.0.24/app-readme.md b/enterprise/minio/1.1.0/app-readme.md similarity index 100% rename from enterprise/minio/1.0.24/app-readme.md rename to enterprise/minio/1.1.0/app-readme.md diff --git a/enterprise/minio/1.1.0/charts/common-1.2.6.tgz b/enterprise/minio/1.1.0/charts/common-1.2.6.tgz new file mode 100644 index 0000000000..77b6c40641 Binary files /dev/null and b/enterprise/minio/1.1.0/charts/common-1.2.6.tgz differ diff --git a/enterprise/minio/1.0.24/ci/snmd-https-values.yaml b/enterprise/minio/1.1.0/ci/snmd-https-values.yaml similarity index 94% rename from enterprise/minio/1.0.24/ci/snmd-https-values.yaml rename to enterprise/minio/1.1.0/ci/snmd-https-values.yaml index 05c5dac5a5..66a6de8c69 100644 --- a/enterprise/minio/1.0.24/ci/snmd-https-values.yaml +++ b/enterprise/minio/1.1.0/ci/snmd-https-values.yaml @@ -21,21 +21,13 @@ minioMultiMode: - /data{1...4} minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data2 - datasetName: "" + - type: pvc mountPath: /data2 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data3 - datasetName: "" + - type: pvc mountPath: /data3 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data4 - datasetName: "" + - type: pvc mountPath: /data4 ixCertificates: diff --git a/enterprise/minio/1.0.24/ci/snmd-logsearch-https-values.yaml b/enterprise/minio/1.1.0/ci/snmd-logsearch-https-values.yaml similarity index 91% rename from enterprise/minio/1.0.24/ci/snmd-logsearch-https-values.yaml rename to enterprise/minio/1.1.0/ci/snmd-logsearch-https-values.yaml index 048c0cb431..11631ab912 100644 --- a/enterprise/minio/1.0.24/ci/snmd-logsearch-https-values.yaml +++ b/enterprise/minio/1.1.0/ci/snmd-logsearch-https-values.yaml @@ -21,21 +21,13 @@ minioMultiMode: - /data{1...4} minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data2 - datasetName: "" + - type: pvc mountPath: /data2 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data3 - datasetName: "" + - type: pvc mountPath: /data3 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data4 - datasetName: "" + - type: pvc mountPath: /data4 minioLogging: @@ -43,13 +35,12 @@ minioLogging: enabled: true diskCapacityGB: 5 pgData: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_data - datasetName: "" + type: pvc pgBackup: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_backup - datasetName: "" + type: emptyDir + emptyDirConfig: + size: "" + medium: "" ixCertificates: "1": diff --git a/enterprise/minio/1.1.0/ci/snmd-logsearch-values.yaml b/enterprise/minio/1.1.0/ci/snmd-logsearch-values.yaml new file mode 100644 index 0000000000..ba5442026b --- /dev/null +++ b/enterprise/minio/1.1.0/ci/snmd-logsearch-values.yaml @@ -0,0 +1,34 @@ +# When inside the versioned minio folder, run: +# helm dependency update +# helm template -f ix_values.yaml -f ci/logsearch-values.yaml . + +# Always use a unique hostPath for each test + +minioCreds: + rootUser: minio_test + rootPass: minio_test + +minioMultiMode: + - /data{1...4} + +minioStorage: + - type: pvc + mountPath: /data1 + - type: pvc + mountPath: /data2 + - type: pvc + mountPath: /data3 + - type: pvc + mountPath: /data4 + +minioLogging: + logsearch: + enabled: true + diskCapacityGB: 5 + pgData: + type: pvc + pgBackup: + type: emptyDir + emptyDirConfig: + size: "" + medium: "" diff --git a/enterprise/minio/1.0.24/ci/snmd-values.yaml b/enterprise/minio/1.1.0/ci/snmd-values.yaml similarity index 51% rename from enterprise/minio/1.0.24/ci/snmd-values.yaml rename to enterprise/minio/1.1.0/ci/snmd-values.yaml index 481dd5aaf6..c6558d8d8b 100644 --- a/enterprise/minio/1.0.24/ci/snmd-values.yaml +++ b/enterprise/minio/1.1.0/ci/snmd-values.yaml @@ -12,19 +12,11 @@ minioMultiMode: - /data{1...4} minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data2 - datasetName: "" + - type: pvc mountPath: /data2 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data3 - datasetName: "" + - type: pvc mountPath: /data3 - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data4 - datasetName: "" + - type: pvc mountPath: /data4 diff --git a/enterprise/minio/1.0.24/ci/snsd-https-values.yaml b/enterprise/minio/1.1.0/ci/snsd-https-values.yaml similarity index 98% rename from enterprise/minio/1.0.24/ci/snsd-https-values.yaml rename to enterprise/minio/1.1.0/ci/snsd-https-values.yaml index 8d9f00b1a1..8723232467 100644 --- a/enterprise/minio/1.0.24/ci/snsd-https-values.yaml +++ b/enterprise/minio/1.1.0/ci/snsd-https-values.yaml @@ -13,9 +13,7 @@ minioNetwork: certificateID: 1 minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 ixCertificates: diff --git a/enterprise/minio/1.0.24/ci/snsd-logsearch-https-values.yaml b/enterprise/minio/1.1.0/ci/snsd-logsearch-https-values.yaml similarity index 95% rename from enterprise/minio/1.0.24/ci/snsd-logsearch-https-values.yaml rename to enterprise/minio/1.1.0/ci/snsd-logsearch-https-values.yaml index f882382a04..33d2e2f591 100644 --- a/enterprise/minio/1.0.24/ci/snsd-logsearch-https-values.yaml +++ b/enterprise/minio/1.1.0/ci/snsd-logsearch-https-values.yaml @@ -12,9 +12,7 @@ minioNetwork: certificateID: 1 minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 minioLogging: @@ -22,13 +20,12 @@ minioLogging: enabled: true diskCapacityGB: 5 pgData: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_data - datasetName: "" + type: pvc pgBackup: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_backup - datasetName: "" + type: emptyDir + emptyDirConfig: + size: "" + medium: "" ixCertificates: "1": diff --git a/enterprise/minio/1.0.24/ci/snsd-logsearch-values.yaml b/enterprise/minio/1.1.0/ci/snsd-logsearch-values.yaml similarity index 55% rename from enterprise/minio/1.0.24/ci/snsd-logsearch-values.yaml rename to enterprise/minio/1.1.0/ci/snsd-logsearch-values.yaml index cde962dfb5..1f3878ee5e 100644 --- a/enterprise/minio/1.0.24/ci/snsd-logsearch-values.yaml +++ b/enterprise/minio/1.1.0/ci/snsd-logsearch-values.yaml @@ -9,9 +9,7 @@ minioCreds: rootPass: minio_test minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 minioLogging: @@ -19,10 +17,9 @@ minioLogging: enabled: true diskCapacityGB: 5 pgData: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_data - datasetName: "" + type: pvc pgBackup: - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/postgres_backup - datasetName: "" + type: emptyDir + emptyDirConfig: + size: "" + medium: "" diff --git a/enterprise/minio/1.0.24/ci/snsd-values.yaml b/enterprise/minio/1.1.0/ci/snsd-values.yaml similarity index 77% rename from enterprise/minio/1.0.24/ci/snsd-values.yaml rename to enterprise/minio/1.1.0/ci/snsd-values.yaml index 6ce309e1cd..8b52123616 100644 --- a/enterprise/minio/1.0.24/ci/snsd-values.yaml +++ b/enterprise/minio/1.1.0/ci/snsd-values.yaml @@ -13,7 +13,5 @@ minioRunAs: group: 1000 minioStorage: - - type: hostPath - hostPath: /mnt/{{ .Release.Namespace }}/data1 - datasetName: "" + - type: pvc mountPath: /data1 diff --git a/enterprise/minio/1.0.24/ix_values.yaml b/enterprise/minio/1.1.0/ix_values.yaml similarity index 80% rename from enterprise/minio/1.0.24/ix_values.yaml rename to enterprise/minio/1.1.0/ix_values.yaml index fe482ce6a9..de931fa715 100644 --- a/enterprise/minio/1.0.24/ix_values.yaml +++ b/enterprise/minio/1.1.0/ix_values.yaml @@ -1,6 +1,6 @@ image: repository: minio/minio - tag: RELEASE.2023-03-24T21-41-23Z + tag: RELEASE.2023-12-07T04-16-00Z pullPolicy: IfNotPresent logsearchImage: @@ -42,7 +42,9 @@ minioLogging: diskCapacityGB: 5 pgData: type: ixVolume - datasetName: postgres-data + ixVolumeConfig: + datasetName: postgres-data pgBackup: type: ixVolume - datasetName: postgres-backup + ixVolumeConfig: + datasetName: postgres-backup diff --git a/enterprise/minio/1.0.24/metadata.yaml b/enterprise/minio/1.1.0/metadata.yaml similarity index 100% rename from enterprise/minio/1.0.24/metadata.yaml rename to enterprise/minio/1.1.0/metadata.yaml diff --git a/enterprise/minio/1.1.0/migrations/migrate b/enterprise/minio/1.1.0/migrations/migrate new file mode 100755 index 0000000000..c25c5e64a0 --- /dev/null +++ b/enterprise/minio/1.1.0/migrations/migrate @@ -0,0 +1,63 @@ +#!/usr/bin/python3 +import json +import os +import sys + + +def storage_migrate(storage): + delete_keys = [] + if storage['type'] == 'hostPath': + # Check if the key exists, if not we have already migrated + if not storage.get('hostPath'): + return storage + + storage['hostPathConfig'] = {'hostPath': storage['hostPath']} + delete_keys.append('hostPath') + + elif storage['type'] == 'ixVolume': + # Check if the key exists, if not we have already migrated + if not storage.get('datasetName'): + return storage + + storage['ixVolumeConfig'] = {'datasetName': storage['datasetName']} + delete_keys.append('datasetName') + + # Clean up for some older versions. + if storage.get('hostPath'): + delete_keys.append('hostPath') + + for key in delete_keys: + storage.pop(key, None) + + return storage + + +def migrate(values): + storageKey = 'minioLogging' + storageSubKey = 'logsearch' + storages = ['pgData', 'pgBackup'] + + for storage in storages: + check_val = values.get(storageKey, {}).get(storageSubKey, {}).get(storage, {}) + if not isinstance(check_val, dict) or not check_val: + raise Exception(f'Storage section {storage} is malformed') + + values[storageKey][storageSubKey][storage] = storage_migrate(check_val) + + dataStorageItems = values.get('minioStorage', {}) + for idx, storage in enumerate(dataStorageItems): + if not isinstance(storage, dict) or not storage: + raise Exception(f'Item {idx} in minioStorage is malformed') + + dataStorageItems[idx] = storage_migrate(storage) + + return values + + +if __name__ == '__main__': + if len(sys.argv) != 2: + exit(1) + + if os.path.exists(sys.argv[1]): + with open(sys.argv[1], 'r') as f: + print(json.dumps(migrate(json.loads(f.read())))) diff --git a/enterprise/minio/1.0.24/questions.yaml b/enterprise/minio/1.1.0/questions.yaml similarity index 54% rename from enterprise/minio/1.0.24/questions.yaml rename to enterprise/minio/1.1.0/questions.yaml index c31eceb879..c88460f7b6 100644 --- a/enterprise/minio/1.0.24/questions.yaml +++ b/enterprise/minio/1.1.0/questions.yaml @@ -198,27 +198,66 @@ questions: required: true immutable: true default: /data1 - - variable: hostPath - label: Host Path - description: The host path to use for storage. + - variable: ixVolumeConfig + label: ixVolume Configuration + description: The configuration for the ixVolume dataset. schema: - type: hostpath - required: true - immutable: true - default: "" - show_if: [["type", "=", "hostPath"]] - - variable: datasetName - label: Dataset Name - description: The name of the dataset to use for storage. - schema: - type: string + type: dict show_if: [["type", "=", "ixVolume"]] - required: true - immutable: true - # Can we make this dynamic, so we can hide it?! - default: data1 $ref: - "normalize/ixVolume" + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Hide ACL for now + hidden: true + default: false + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + required: true + immutable: true + default: "data1" + - variable: aclEntries + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + - variable: hostPathConfig + label: Host Path Configuration + schema: + type: dict + show_if: [["type", "=", "hostPath"]] + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Hide ACL for now + hidden: true + default: false + - variable: acl + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + $ref: + - "normalize/acl" + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["aclEnable", "=", false]] + required: true - variable: minioLogging label: "" @@ -266,6 +305,9 @@ questions: attrs: - variable: type label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. schema: type: string required: true @@ -273,27 +315,74 @@ questions: default: ixVolume enum: - value: hostPath - description: Host Path + description: Host Path (Path that already exists on the system) - value: ixVolume - description: ixVolume - - variable: datasetName - label: Dataset Name + description: ixVolume (Dataset created automatically by the system) + - variable: ixVolumeConfig + label: ixVolume Configuration + description: The configuration for the ixVolume dataset. schema: - type: string - show_if: [["type", "=", "ixVolume"]] - required: true + type: dict + # Nothing to show for the user hidden: true - immutable: true - default: postgres-data + show_if: [["type", "=", "ixVolume"]] $ref: - "normalize/ixVolume" - - variable: hostPath - label: Host Path + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Postgres does a CHMOD at startup + # Which fails with ACL + hidden: true + default: false + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + required: true + immutable: true + hidden: true + default: postgres-data + - variable: aclEntries + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + - variable: hostPathConfig + label: Host Path Configuration schema: - type: hostpath + type: dict show_if: [["type", "=", "hostPath"]] - immutable: true - required: true + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Postgres does a CHMOD at startup + # Which fails with ACL + hidden: true + default: false + - variable: acl + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + $ref: + - "normalize/acl" + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["aclEnable", "=", false]] + required: true - variable: pgBackup label: Postgres Backup Storage description: The path to store Postgres backups. @@ -302,32 +391,84 @@ questions: attrs: - variable: type label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. schema: type: string required: true + immutable: true default: ixVolume enum: - value: hostPath - description: Host Path + description: Host Path (Path that already exists on the system) - value: ixVolume - description: ixVolume - - variable: datasetName - label: Dataset Name + description: ixVolume (Dataset created automatically by the system) + - variable: ixVolumeConfig + label: ixVolume Configuration + description: The configuration for the ixVolume dataset. schema: - type: string - show_if: [["type", "=", "ixVolume"]] - required: true + type: dict + # Nothing to show for the user hidden: true - immutable: true - default: postgres-backup + show_if: [["type", "=", "ixVolume"]] $ref: - "normalize/ixVolume" - - variable: hostPath - label: Host Path + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Postgres does a CHMOD at startup + # Which fails with ACL + hidden: true + default: false + - variable: datasetName + label: Dataset Name + description: The name of the dataset to use for storage. + schema: + type: string + required: true + immutable: true + hidden: true + default: "postgres-backup" + - variable: aclEntries + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + - variable: hostPathConfig + label: Host Path Configuration schema: - type: hostpath + type: dict show_if: [["type", "=", "hostPath"]] - required: true + attrs: + - variable: aclEnable + label: Enable ACL + description: Enable ACL for the dataset. + schema: + type: boolean + # Postgres does a CHMOD at startup + # Which fails with ACL + hidden: true + default: false + - variable: acl + label: ACL Configuration + schema: + type: dict + show_if: [["aclEnable", "=", true]] + attrs: [] + $ref: + - "normalize/acl" + - variable: hostPath + label: Host Path + description: The host path to use for storage. + schema: + type: hostpath + show_if: [["aclEnable", "=", false]] + required: true - variable: resources label: "" diff --git a/enterprise/minio/1.0.24/templates/NOTES.txt b/enterprise/minio/1.1.0/templates/NOTES.txt similarity index 100% rename from enterprise/minio/1.0.24/templates/NOTES.txt rename to enterprise/minio/1.1.0/templates/NOTES.txt diff --git a/enterprise/minio/1.0.24/templates/_configuration.tpl b/enterprise/minio/1.1.0/templates/_configuration.tpl similarity index 100% rename from enterprise/minio/1.0.24/templates/_configuration.tpl rename to enterprise/minio/1.1.0/templates/_configuration.tpl diff --git a/enterprise/minio/1.0.24/templates/_helpers.tpl b/enterprise/minio/1.1.0/templates/_helpers.tpl similarity index 100% rename from enterprise/minio/1.0.24/templates/_helpers.tpl rename to enterprise/minio/1.1.0/templates/_helpers.tpl diff --git a/enterprise/minio/1.0.24/templates/_logsearch.tpl b/enterprise/minio/1.1.0/templates/_logsearch.tpl similarity index 100% rename from enterprise/minio/1.0.24/templates/_logsearch.tpl rename to enterprise/minio/1.1.0/templates/_logsearch.tpl diff --git a/enterprise/minio/1.0.24/templates/_minio.tpl b/enterprise/minio/1.1.0/templates/_minio.tpl similarity index 89% rename from enterprise/minio/1.0.24/templates/_minio.tpl rename to enterprise/minio/1.1.0/templates/_minio.tpl index d2a47e8166..e9e5b3903c 100644 --- a/enterprise/minio/1.0.24/templates/_minio.tpl +++ b/enterprise/minio/1.1.0/templates/_minio.tpl @@ -50,7 +50,8 @@ workload: port: "{{ .Values.minioNetwork.apiPort }}" path: /minio/health/live initContainers: - {{- include "ix.v1.common.app.permissions" (dict "UID" .Values.minioRunAs.user + {{- include "ix.v1.common.app.permissions" (dict "containerName" "01-permissions" + "UID" .Values.minioRunAs.user "GID" .Values.minioRunAs.group "type" "install") | nindent 8 -}} {{- if .Values.minioLogging.logsearch.enabled }} @@ -102,15 +103,16 @@ persistence: {{- range $idx, $storage := .Values.minioStorage }} {{ printf "data%v" (int $idx) }}: enabled: true - type: {{ $storage.type }} - datasetName: {{ $storage.datasetName | default "" }} - hostPath: {{ $storage.hostPath | default "" }} + {{- include "minio.storage.ci.migration" (dict "storage" $storage) }} + {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }} targetSelector: minio: minio: mountPath: {{ $storage.mountPath }} - permissions: + {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }} + 01-permissions: mountPath: /mnt/directories{{ $storage.mountPath }} + {{- end }} {{- end }} # Minio writes temporary files to this directory. Adding this as an emptyDir, # So we don't have to set readOnlyRootFilesystem to false diff --git a/enterprise/minio/1.0.24/templates/_portal.tpl b/enterprise/minio/1.1.0/templates/_portal.tpl similarity index 100% rename from enterprise/minio/1.0.24/templates/_portal.tpl rename to enterprise/minio/1.1.0/templates/_portal.tpl diff --git a/enterprise/minio/1.0.24/templates/_postgres.tpl b/enterprise/minio/1.1.0/templates/_postgres.tpl similarity index 53% rename from enterprise/minio/1.0.24/templates/_postgres.tpl rename to enterprise/minio/1.1.0/templates/_postgres.tpl index c8d97bdf84..3dbde1286d 100644 --- a/enterprise/minio/1.0.24/templates/_postgres.tpl +++ b/enterprise/minio/1.1.0/templates/_postgres.tpl @@ -1,11 +1,16 @@ {{- define "postgres.workload" -}} workload: -{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds" "resources" .Values.resources) | nindent 2 }} +{{- include "ix.v1.common.app.postgres" (dict "secretName" "postgres-creds" + "resources" .Values.resources + "ixChartContext" .Values.ixChartContext) | nindent 2 }} {{/* Service */}} service: {{- include "ix.v1.common.app.postgresService" $ | nindent 2 }} +{{- include "minio.storage.ci.migration" (dict "storage" .Values.minioLogging.logsearch.pgData) }} +{{- include "minio.storage.ci.migration" (dict "storage" .Values.minioLogging.logsearch.pgBackup) }} + {{/* Persistence */}} persistence: {{- include "ix.v1.common.app.postgresPersistence" diff --git a/enterprise/minio/1.0.24/templates/common.yaml b/enterprise/minio/1.1.0/templates/common.yaml similarity index 65% rename from enterprise/minio/1.0.24/templates/common.yaml rename to enterprise/minio/1.1.0/templates/common.yaml index b013a2644c..ec440ea1c9 100644 --- a/enterprise/minio/1.0.24/templates/common.yaml +++ b/enterprise/minio/1.1.0/templates/common.yaml @@ -1,5 +1,15 @@ {{- include "ix.v1.common.loader.init" . -}} +{{/* TODO: Remove on the next version bump, eg 1.1.0+ */}} +{{- define "minio.storage.ci.migration" -}} + {{- $storage := .storage -}} + + {{- if $storage.hostPath -}} + {{- $_ := set $storage "hostPathConfig" dict -}} + {{- $_ := set $storage.hostPathConfig "hostPath" $storage.hostPath -}} + {{- end -}} +{{- end -}} + {{/* Merge the templates with Values */}} {{- $_ := mustMergeOverwrite .Values (include "minio.configuration" $ | fromYaml) -}} diff --git a/enterprise/minio/1.0.24/upgrade_strategy_disable b/enterprise/minio/1.1.0/upgrade_strategy_disable similarity index 100% rename from enterprise/minio/1.0.24/upgrade_strategy_disable rename to enterprise/minio/1.1.0/upgrade_strategy_disable