From e49f23824458ddbcc2d3b691bd53995375c1e66d Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Tue, 27 Dec 2022 11:16:52 +0200 Subject: [PATCH] remove old version from test charts --- test/minio/1.6.62/.helmignore | 23 -- test/minio/1.6.62/CHANGELOG.md | 15 - test/minio/1.6.62/Chart.yaml | 19 -- test/minio/1.6.62/README.md | 52 ---- test/minio/1.6.62/app-readme.md | 5 - test/minio/1.6.62/charts/common-2207.0.0.tgz | Bin 4976 -> 0 bytes test/minio/1.6.62/ix_values.yaml | 6 - test/minio/1.6.62/migrations/migrate | 120 -------- .../1.6.62/migrations/migrate_from_1.0.0 | 28 -- test/minio/1.6.62/questions.yaml | 278 ------------------ test/minio/1.6.62/requirements.lock | 6 - test/minio/1.6.62/templates/NOTES.txt | 2 - test/minio/1.6.62/templates/_cert.tpl | 33 --- test/minio/1.6.62/templates/_helpers.tpl | 77 ----- test/minio/1.6.62/templates/configmap.yaml | 6 - test/minio/1.6.62/templates/deployment.yaml | 71 ----- .../1.6.62/templates/pre-install-job.yaml | 28 -- test/minio/1.6.62/templates/secrets.yaml | 13 - test/minio/1.6.62/templates/service.yaml | 13 - .../1.6.62/templates/serviceaccount.yaml | 1 - .../templates/tests/deployment-check.yaml | 21 -- test/minio/1.6.62/test_values.yaml | 23 -- 22 files changed, 840 deletions(-) delete mode 100644 test/minio/1.6.62/.helmignore delete mode 100644 test/minio/1.6.62/CHANGELOG.md delete mode 100644 test/minio/1.6.62/Chart.yaml delete mode 100755 test/minio/1.6.62/README.md delete mode 100644 test/minio/1.6.62/app-readme.md delete mode 100644 test/minio/1.6.62/charts/common-2207.0.0.tgz delete mode 100644 test/minio/1.6.62/ix_values.yaml delete mode 100755 test/minio/1.6.62/migrations/migrate delete mode 100755 test/minio/1.6.62/migrations/migrate_from_1.0.0 delete mode 100644 test/minio/1.6.62/questions.yaml delete mode 100644 test/minio/1.6.62/requirements.lock delete mode 100644 test/minio/1.6.62/templates/NOTES.txt delete mode 100644 test/minio/1.6.62/templates/_cert.tpl delete mode 100644 test/minio/1.6.62/templates/_helpers.tpl delete mode 100644 test/minio/1.6.62/templates/configmap.yaml delete mode 100644 test/minio/1.6.62/templates/deployment.yaml delete mode 100644 test/minio/1.6.62/templates/pre-install-job.yaml delete mode 100644 test/minio/1.6.62/templates/secrets.yaml delete mode 100644 test/minio/1.6.62/templates/service.yaml delete mode 100644 test/minio/1.6.62/templates/serviceaccount.yaml delete mode 100644 test/minio/1.6.62/templates/tests/deployment-check.yaml delete mode 100644 test/minio/1.6.62/test_values.yaml diff --git a/test/minio/1.6.62/.helmignore b/test/minio/1.6.62/.helmignore deleted file mode 100644 index a9fe727881..0000000000 --- a/test/minio/1.6.62/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*~ -# Various IDEs -.project -.idea/ -*.tmproj -# OWNERS file for Kubernetes -OWNERS \ No newline at end of file diff --git a/test/minio/1.6.62/CHANGELOG.md b/test/minio/1.6.62/CHANGELOG.md deleted file mode 100644 index a0f538acc7..0000000000 --- a/test/minio/1.6.62/CHANGELOG.md +++ /dev/null @@ -1,15 +0,0 @@ -# Change Log - -This contains all the notable changes to the MinIO application. - -## [1.5.0] - -1. On fresh installation, minIO data directory's ownership will be updated to minio:minio. -2. For existing installations that are exhibiting the upgrade, the minIO data directory's ownership will be migrated to minio:minio. - -## [1.6.2] - -1. Users with existing instances are advised to not update to the newer version. - MinIO released a major version change with no backwards compatibility. - In order to use newer versions of MinIO, a manual migration is needed. - For more information, visit https://min.io/docs/minio/linux/operations/install-deploy-manage/migrate-fs-gateway.html diff --git a/test/minio/1.6.62/Chart.yaml b/test/minio/1.6.62/Chart.yaml deleted file mode 100644 index 774f64afd2..0000000000 --- a/test/minio/1.6.62/Chart.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -appVersion: '2022-11-10' -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -description: High Performance, Kubernetes Native Object Storage -home: https://min.io -icon: https://min.io/resources/img/logo/MINIO_wordmark.png -keywords: -- storage -- object-storage -- S3 -name: minio -sources: -- https://github.com/minio/minio -- https://github.com/minio/charts -upstream_version: 8.0.5 -version: 1.6.62 diff --git a/test/minio/1.6.62/README.md b/test/minio/1.6.62/README.md deleted file mode 100755 index d21b8c0107..0000000000 --- a/test/minio/1.6.62/README.md +++ /dev/null @@ -1,52 +0,0 @@ -MinIO -===== - -[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. - -MinIO supports [distributed mode](https://docs.minio.io/docs/distributed-minio-quickstart-guide). In distributed mode, you can pool multiple drives (even on different machines) into a single object storage server. - -For more detailed documentation please visit [here](https://docs.minio.io/) - -Introduction ------------- - -This chart bootstraps MinIO deployment on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager. - - -Configuration -------------- - -The following table lists the configurable parameters of the MinIO chart and their default values. - -| Parameter | Description | Default | -|:-------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------| -| `image.repository` | Image repository | `minio/minio` | -| `image.tag` | MinIO image tag. Possible values listed [here](https://hub.docker.com/r/minio/minio/tags/). | `RELEASE.2020-11-06T23-17-07Z` | -| `image.pullPolicy` | Image pull policy | `IfNotPresent` | -| `extraArgs` | Additional command line arguments to pass to the MinIO server | `[]` | -| `accessKey` | Default access key (5 to 20 characters) | random 20 chars | -| `secretKey` | Default secret key (8 to 40 characters) | random 40 chars | -| `persistence.enabled` | Use persistent volume to store data | `true` | -| `persistence.size` | Size of persistent volume claim | `500Gi` | -| `persistence.existingClaim` | Use an existing PVC to persist data | `nil` | -| `persistence.storageClass` | Storage class name of PVC | `nil` | -| `persistence.accessMode` | ReadWriteOnce or ReadOnly | `ReadWriteOnce` | -| `persistence.subPath` | Mount a sub directory of the persistent volume if set | `""` | -| `environment` | Set MinIO server relevant environment variables in `values.yaml` file. MinIO containers will be passed these variables when they start. | `MINIO_STORAGE_CLASS_STANDARD: EC:4"` | - -Some parameters above map to the env variables defined in the [MinIO DockerHub image](https://hub.docker.com/r/minio/minio/). - -Pass environment variables to MinIO containers ----------------------------------------------- - -To pass environment variables to MinIO containers when deploying via Helm chart, use the below command line format - -```bash -$ helm install --set environment.MINIO_BROWSER=on,environment.MINIO_DOMAIN=domain-name minio/minio -``` - -You can add as many environment variables as required, using the above format. Just add `environment.=` under `set` flag. - -**NOTE** -- On fresh installation, minIO data directory's ownership will be updated to minio:minio. -- For existing installations that are exhibiting the upgrade to >=1.5.0, the minIO data directory's ownership will be migrated to minio:minio. diff --git a/test/minio/1.6.62/app-readme.md b/test/minio/1.6.62/app-readme.md deleted file mode 100644 index 648ed287e4..0000000000 --- a/test/minio/1.6.62/app-readme.md +++ /dev/null @@ -1,5 +0,0 @@ -[MinIO](https://min.io) is a High Performance Object Storage released under Apache License v2.0. It is API compatible with Amazon S3 cloud storage service. Use MinIO to build high performance infrastructure for machine learning, analytics and application data workloads. - -**NOTE** -- On installation, minIO data directory's ownership will be updated to minio:minio. -- For existing installations that are exhibiting the upgrade to >=1.5.0, the minIO data directory's ownership will be migrated to minio:minio. diff --git a/test/minio/1.6.62/charts/common-2207.0.0.tgz b/test/minio/1.6.62/charts/common-2207.0.0.tgz deleted file mode 100644 index 2adf94b4383245692b6eecaf85bbd43bd62e89de..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4976 zcmV-$6OZg4iwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4SWK%V1T2nbTPgYhoO;>Dc zVQyr3R8em|NM&qo0PH>ebKAC({aJs-9+S?qb2TN)vVG&3&YaKAd-XJRGI1vFb#884 zh=e56B)|Zm99`=B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Ofd{9o@Gyhog{ zT)@ToOVJB6&VI*{?1d!8sBgeI`@I*=MZ{v<|H?&Q7c2j7U!I=-@-j^0r)Xnk{?DKx z|AX!KUp7;o!7KYw|FdNu^;h>aK(F`W#XnEqUS3@O;{@LQba4e|Kb^jP2Nzdx`T8CF z^78cZ9lU!D|Me0sF0bC5zIyfY9L_J^zC3&P>em-9dggddA^^dE|AdpY+Wi0Q%%sf3 zNx$#DBoMPm^d-wkq+L@5daaLd75!%lW;cWj<(OwV&zR78>Z%J<&hkttFZT&zHYE{^ zvAo6DeEj6*Kg55|SZdFW6(RI`SA<3w5F|_o!OR1gF!egF>j>o@IOU{|Shgg=EfQK` zN~J|Pj`IjZiU^gMB84iU0smyu$?m diff --git a/test/minio/1.6.62/ix_values.yaml b/test/minio/1.6.62/ix_values.yaml deleted file mode 100644 index 8e7e933b63..0000000000 --- a/test/minio/1.6.62/ix_values.yaml +++ /dev/null @@ -1,6 +0,0 @@ -image: - pullPolicy: IfNotPresent - repository: minio/minio - tag: RELEASE.2022-11-10T18-20-21Z -runAsGroup: 473 -runAsUser: 473 diff --git a/test/minio/1.6.62/migrations/migrate b/test/minio/1.6.62/migrations/migrate deleted file mode 100755 index 155c8ff372..0000000000 --- a/test/minio/1.6.62/migrations/migrate +++ /dev/null @@ -1,120 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys -import subprocess -from pathlib import Path - -from middlewared.client import Client -from middlewared.service import ValidationErrors, CallError - - -def path_in_locked_datasets(path: str) -> bool: - with Client() as c: - return c.call('pool.dataset.path_in_locked_datasets', path) - - -def get_configured_user_group(path: str) -> dict: - with Client() as c: - return c.call('filesystem.stat', path) - - -def get_host_path_attachments(path: str) -> set: - with Client() as c: - return { - attachment['type'] - for attachment in c.call('pool.dataset.attachments_with_path', path) - if attachment['type'].lower() not in ['kubernetes', 'chart releases'] - } - - -def get_kubernetes_config() -> dict: - with Client() as c: - return c.call('kubernetes.config') - - -def validate_host_path(path: str, schema_name: str, verrors: ValidationErrors) -> None: - """ - These validations are taken from `FilesystemService._common_perm_path_validate`. - Including an additional validation that makes sure all the children under - a path are on same device. - """ - schema_name += ".migration.chown" - p = Path(path) - if not p.is_absolute(): - verrors.add(schema_name, f"Must be an absolute path: {path}") - - if p.is_file(): - verrors.add(schema_name, f"Recursive operations on a file are invalid: {path}") - - if not p.absolute().as_posix().startswith("/mnt/"): - verrors.add( - schema_name, - f"Changes to permissions on paths that are not beneath the directory /mnt are not permitted: {path}" - ) - elif len(p.resolve().parents) == 2: - verrors.add(schema_name, f"The specified path is a ZFS pool mountpoint: {path}") - - # Make sure that dataset is not locked - if path_in_locked_datasets(path): - verrors.add(schema_name, f"Dataset is locked at path: {path}.") - - # Validate attachments - if attachments := get_host_path_attachments(path): - verrors.add(schema_name, f"The path '{path}' is already attached to service(s): {', '.join(attachments)}.") - - # Make sure all the minio's data directory children are on same device. - device_id = os.stat(path).st_dev - for root, dirs, files in os.walk(path): - for child in dirs + files: - abs_path = os.path.join(root, child) - if os.stat(abs_path).st_dev != device_id: - verrors.add( - schema_name, - (f"All the children of MinIO data directory should be on " - f"same device as root: path={abs_path} device={os.stat(abs_path).st_dev}") - ) - break - - -def migrate(values: dict) -> dict: - # minio user / group ID - uid = gid = 473 - verrors = ValidationErrors() - k8s_config = get_kubernetes_config() - if values["appVolumeMounts"]["export"]["hostPathEnabled"]: - host_path = values["appVolumeMounts"]["export"]["hostPath"] - else: - app_dataset = values["appVolumeMounts"]["export"]["datasetName"] - host_path = os.path.join( - "/mnt", k8s_config['dataset'], "releases", values["release_name"], "volumes/ix_volumes", app_dataset - ) - - current_config = get_configured_user_group(host_path) - if current_config["uid"] == uid and current_config["gid"] == gid: - return values - - validate_host_path(host_path, values['release_name'], verrors) - verrors.check() - # chown the host path - acltool = subprocess.run([ - "/usr/bin/nfs4xdr_winacl", - "-a", "chown", - "-O", str(uid), "-G", str(gid), - "-r", - "-c", host_path, - "-p", host_path], check=False, capture_output=True - ) - if acltool.returncode != 0: - raise CallError(f"acltool [chown] on path {host_path} failed with error: [{acltool.stderr.decode().strip()}]") - - 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/test/minio/1.6.62/migrations/migrate_from_1.0.0 b/test/minio/1.6.62/migrations/migrate_from_1.0.0 deleted file mode 100755 index d9772faa1d..0000000000 --- a/test/minio/1.6.62/migrations/migrate_from_1.0.0 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/python3 -import json -import os -import sys - - -def migrate(values): - if values.get('appVolumeMounts'): - return values - - values.update({ - 'appVolumeMounts': { - 'export': { - 'hostPathEnabled': values['minioHostPathEnabled'], - **({'hostPath': values['minioHostPath']} if values.get('minioHostPath') else {}) - }, - }, - }) - 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/test/minio/1.6.62/questions.yaml b/test/minio/1.6.62/questions.yaml deleted file mode 100644 index 54b54b30b4..0000000000 --- a/test/minio/1.6.62/questions.yaml +++ /dev/null @@ -1,278 +0,0 @@ -groups: - - name: "Container Images" - description: "Image to be used for container" - - name: "Workload Configuration" - description: "Configure workload deployment" - - name: "Minio Configuration" - description: "Configure Minio credentials" - - name: "Storage" - description: "Configure Storage for Nextcloud" - - name: "Advanced DNS Settings" - description: "Configure DNS settings" - - name: "Resource Limits" - description: "Set CPU/memory limits for Kubernetes Pod" - -portals: - web_portal: - protocols: - - "$kubernetes-resource_configmap_minio-config_protocol" - host: - - "$node_ip" - ports: - - "$variable-service.consolePort" - -questions: - - - variable: dnsConfig - label: "DNS Configuration" - group: "Advanced DNS Settings" - schema: - type: dict - attrs: - - variable: options - label: "DNS Options" - schema: - type: list - items: - - variable: optionsEntry - label: "Option Entry Configuration" - schema: - type: dict - attrs: - - variable: name - label: "Option Name" - schema: - type: string - required: true - - variable: value - label: "Option Value" - schema: - type: string - required: true - - - variable: updateStrategy - label: "Minio update strategy" - group: "Workload Configuration" - schema: - type: string - default: "RollingUpdate" - enum: - - value: "RollingUpdate" - description: "Create new pods and then kill old ones" - - value: "Recreate" - description: "Kill existing pods before creating new ones" - - - variable: distributedMode - label: "Enable Distributed Mode" - description: "Run Minio instance to connect to a distributed minio cluster" - group: "Minio Configuration" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: distributedIps - label: "Distributed Minio Instance URI(s)" - schema: - type: list - required: true - default: [] - items: - - variable: ip - label: "Distributed Minio Instance URI" - schema: - type: string - empty: false - - - - variable: extraArgs - label: "Minio Extra Arguments" - group: "Minio Configuration" - schema: - type: list - default: [] - items: - - variable: arg - label: "Argument" - schema: - type: string - - - variable: accessKey - label: "Root User" - group: "Minio Configuration" - description: "Enter the S3 Root User" - schema: - type: string - private: true - required: true - min_length: 5 - max_length: 20 - - - variable: secretKey - label: "Root Password" - group: "Minio Configuration" - description: "Enter the S3 Root Password" - schema: - type: string - private: true - required: true - min_length: 8 - max_length: 40 - - - variable: environmentVariables - label: "Minio image environment" - group: "Minio Configuration" - schema: - type: list - default: [] - items: - - variable: environmentVariable - label: "Environment Variable" - schema: - type: dict - attrs: - - variable: name - label: "Name" - schema: - type: string - - variable: value - label: "Value" - schema: - type: string - - - variable: service - description: "Minio Service Configuration" - label: "Minio Service Configuration" - group: "Minio Configuration" - schema: - type: dict - required: true - attrs: - - variable: nodePort - label: "Node Port to use for Minio API" - schema: - type: int - min: 9000 - max: 65535 - default: 9000 - required: true - - variable: consolePort - label: "Node Port to use for Minio UI Access" - schema: - type: int - min: 9000 - max: 65535 - default: 9002 - required: true - - - variable: minioDomain - label: "Minio Domain Name" - description: "This is only required if TLS is configured for Minio" - group: "Minio Configuration" - schema: - type: string - default: null - "null": true - show_if: [["certificate", "!=", null]] - - - variable: certificate - description: "Minio Certificate" - label: "Minio Certificate" - group: "Minio Configuration" - schema: - type: int - $ref: - - "definitions/certificate" - - - variable: appVolumeMounts - label: "Minio Storage" - group: "Storage" - schema: - type: dict - show_if: [["distributedMode", "=", false]] - attrs: - - variable: export - label: "Data Volume" - schema: - type: dict - attrs: - - variable: datasetName - label: "Minio Data Volume Name" - schema: - type: string - hidden: true - $ref: - - "normalize/ixVolume" - show_if: [["hostPathEnabled", "=", false]] - default: "ix-minio" - editable: false - - variable: mountPath - label: "Minio Data Mount Path" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - default: "/export" - immutable: true - - variable: hostPathEnabled - label: "Enable Host Path for Minio Data Volume" - schema: - type: boolean - default: false - show_subquestions_if: true - subquestions: - - variable: hostPath - label: "Host Path for Minio Data Volume" - schema: - type: hostpath - required: true - immutable: true - - - variable: extraAppVolumeMounts - label: "Extra Host Path Volumes" - group: "Storage" - schema: - type: list - items: - - variable: extraAppVolume - label: "Host Path Volume" - description: "Add an extra host path volume for Minio application" - schema: - type: dict - attrs: - - variable: mountPath - label: "Mount Path in Pod" - description: "Path where the volume will be mounted inside the pod" - schema: - type: path - required: true - - variable: hostPath - label: "Host Path" - description: "Host path" - schema: - type: hostpath - required: true - - - variable: enableResourceLimits - label: "Enable Pod resource limits" - group: "Resource Limits" - schema: - type: boolean - default: false - - variable: cpuLimit - label: "CPU Limresource limitsit" - description: "CPU resource limit allow plain integer values with suffix m(milli) e.g 1000m, 100." - group: "Resource Limits" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^\\d+(?:\\.\\d+(?!.*m$)|m?$)" - default: "4000m" - - variable: memLimit - label: "Memory Limit" - group: "Resource Limits" - description: "Memory limits is specified by number of bytes. Followed by quantity suffix like E,P,T,G,M,k and Ei,Pi,Ti,Mi,Gi,Ki can also be used. e.g 129e6, 129M, 128974848000m, 123Mi" - schema: - type: string - show_if: [["enableResourceLimits", "=", true]] - valid_chars: "^([+-]?[0-9.]+)([eEinumkKMGTP]*[-+]?[0-9]*)$" - default: "8Gi" diff --git a/test/minio/1.6.62/requirements.lock b/test/minio/1.6.62/requirements.lock deleted file mode 100644 index b787c28a7b..0000000000 --- a/test/minio/1.6.62/requirements.lock +++ /dev/null @@ -1,6 +0,0 @@ -dependencies: -- name: common - repository: file://../../../library/common/2207.0.0 - version: 2207.0.0 -digest: sha256:f17f3d458ca0210a52e39da0dce35034e900b36f2040d4b19bed46a7aae91506 -generated: "2022-07-25T00:20:47.987169596+05:00" diff --git a/test/minio/1.6.62/templates/NOTES.txt b/test/minio/1.6.62/templates/NOTES.txt deleted file mode 100644 index 88e8e93ef8..0000000000 --- a/test/minio/1.6.62/templates/NOTES.txt +++ /dev/null @@ -1,2 +0,0 @@ -Minio can be accessed from the following URL: -http://$node_ip:{{ .Values.service.nodePort }}/ diff --git a/test/minio/1.6.62/templates/_cert.tpl b/test/minio/1.6.62/templates/_cert.tpl deleted file mode 100644 index f34777f65a..0000000000 --- a/test/minio/1.6.62/templates/_cert.tpl +++ /dev/null @@ -1,33 +0,0 @@ -{{/* -Formats volumeMount for Minio tls keys and trusted certs -*/}} -{{- define "minio.tlsKeysVolumeMount" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -- name: cert-secret-volume - mountPath: "/etc/minio/certs" -- name: trusted-cert-secret-volume - mountPath: "/etc/minio/certs/CAs" -{{- end }} -{{- end -}} - -{{/* -Formats volume for Minio tls keys and trusted certs -*/}} -{{- define "minio.tlsKeysVolume" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -- name: cert-secret-volume - secret: - secretName: {{ include "minio.secretName" . }} - items: - - key: certPublicKey - path: public.crt - - key: certPrivateKey - path: private.key -- name: trusted-cert-secret-volume - secret: - secretName: {{ include "minio.secretName" . }} - items: - - key: certPublicKey - path: public.crt -{{- end }} -{{- end -}} diff --git a/test/minio/1.6.62/templates/_helpers.tpl b/test/minio/1.6.62/templates/_helpers.tpl deleted file mode 100644 index 4dcb8c5dd9..0000000000 --- a/test/minio/1.6.62/templates/_helpers.tpl +++ /dev/null @@ -1,77 +0,0 @@ -{{/* -Determine secret name. -*/}} -{{- define "minio.secretName" -}} -{{- include "common.names.fullname" . -}} -{{- end -}} - - -{{/* -Retrieve true/false if minio certificate is configured -*/}} -{{- define "minio.certAvailable" -}} -{{- if .Values.certificate -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{- template "common.resources.cert_present" $values -}} -{{- else -}} -{{- false -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve public key of minio certificate -*/}} -{{- define "minio.cert.publicKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate "publicKey" true) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve private key of minio certificate -*/}} -{{- define "minio.cert.privateKey" -}} -{{- $values := (. | mustDeepCopy) -}} -{{- $_ := set $values "commonCertOptions" (dict "certKeyName" $values.Values.certificate) -}} -{{ include "common.resources.cert" $values }} -{{- end -}} - - -{{/* -Retrieve scheme/protocol for minio -*/}} -{{- define "minio.scheme" -}} -{{- if eq (include "minio.certAvailable" .) "true" -}} -{{- print "https" -}} -{{- else -}} -{{- print "http" -}} -{{- end -}} -{{- end -}} - - -{{/* -Retrieve command for minio application -*/}} -{{- define "minio.commandArgs" -}} -{{- $arg := (printf "/usr/bin/docker-entrypoint.sh minio -S /etc/minio/certs server --console-address=':%d'" (.Values.service.consolePort | int)) -}} -{{- if .Values.distributedMode -}} -{{- cat $arg (join " " (concat (.Values.distributedIps | default list) (.Values.extraArgs | default list))) -}} -{{- else -}} -{{- cat $arg ((concat (list (printf "--address ':%d'" (.Values.service.nodePort | int))) (list (printf "%s" .Values.appVolumeMounts.export.mountPath)) (.Values.extraArgs | default list)) | join " ") -}} -{{- end -}} -{{- end -}} - - -{{/* -Enable host networking -*/}} -{{- define "minio.hostNetworking" -}} -{{- if .Values.distributedMode -}} -{{- print "true" -}} -{{- else -}} -{{- print "false" -}} -{{- end -}} -{{- end -}} diff --git a/test/minio/1.6.62/templates/configmap.yaml b/test/minio/1.6.62/templates/configmap.yaml deleted file mode 100644 index 98a62a3890..0000000000 --- a/test/minio/1.6.62/templates/configmap.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: minio-config -data: - protocol: {{ include "minio.scheme" . }} diff --git a/test/minio/1.6.62/templates/deployment.yaml b/test/minio/1.6.62/templates/deployment.yaml deleted file mode 100644 index 05d3ebe366..0000000000 --- a/test/minio/1.6.62/templates/deployment.yaml +++ /dev/null @@ -1,71 +0,0 @@ -{{ include "common.storage.hostPathValidate" .Values }} -apiVersion: {{ template "common.capabilities.deployment.apiVersion" . }} -kind: Deployment -metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - chart: {{ template "common.names.chart" . }} - release: {{ .Release.Name }} - heritage: {{ .Release.Service }} - annotations: - rollme: {{ randAlphaNum 5 | quote }} -spec: - replicas: {{ (default 1 .Values.replicas) }} - strategy: - type: {{ (default "Recreate" .Values.updateStrategy ) }} - selector: - matchLabels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - template: - metadata: - name: {{ template "common.names.fullname" . }} - labels: - app: {{ template "common.names.name" . }} - release: {{ .Release.Name }} - {{- include "common.labels.selectorLabels" . | nindent 8 }} - annotations: {{ include "common.annotations" . | nindent 8 }} - spec: - securityContext: - runAsUser: {{ .Values.runAsUser }} - runAsGroup: {{ .Values.runAsGroup }} - serviceAccountName: {{ include "common.names.serviceAccountName" . | quote }} - hostNetwork: {{ include "minio.hostNetworking" . }} - containers: - - name: {{ .Chart.Name }} - {{ include "common.resources.limitation" . | nindent 10 }} - {{ include "common.containers.imageConfig" .Values.image | nindent 10 }} - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - {{- include "minio.tlsKeysVolumeMount" . | nindent 12 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - mountPath: {{ $hostPathConfiguration.mountPath }} - {{ end }} - command: - - "/bin/sh" - - "-ce" - - {{ include "minio.commandArgs" . }} - ports: - - name: api - containerPort: {{ .Values.service.nodePort | int }} - - name: console - containerPort: {{ .Values.service.consolePort | int }} - env: - {{ $secretName := (include "minio.secretName" .) }} - {{ $envList := (default list .Values.environmentVariables) }} - {{ if and (eq (include "minio.certAvailable" .) "true") .Values.minioDomain }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_BROWSER_REDIRECT_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.consolePort | int))) }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_SERVER_URL" "value" (printf "%s://%s:%d" (include "minio.scheme" .) .Values.minioDomain (.Values.service.nodePort | int))) }} - {{ end }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_USER" "valueFromSecret" true "secretName" $secretName "secretKey" "accesskey") }} - {{ $envList = mustAppend $envList (dict "name" "MINIO_ROOT_PASSWORD" "valueFromSecret" true "secretName" $secretName "secretKey" "secretkey") }} - {{ include "common.containers.environmentVariables" (dict "environmentVariables" $envList) | nindent 12 }} -{{ include "common.networking.dnsConfiguration" .Values | nindent 6 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} - {{- include "minio.tlsKeysVolume" . | nindent 8 }} - {{ range $index, $hostPathConfiguration := .Values.extraAppVolumeMounts }} - - name: extrappvolume-{{ $index }} - hostPath: - path: {{ $hostPathConfiguration.hostPath }} - {{ end }} diff --git a/test/minio/1.6.62/templates/pre-install-job.yaml b/test/minio/1.6.62/templates/pre-install-job.yaml deleted file mode 100644 index 26a6212c47..0000000000 --- a/test/minio/1.6.62/templates/pre-install-job.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-job" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - app.kubernetes.io/version: {{ .Chart.AppVersion }} - helm.sh/chart: {{ template "common.names.chart" . }} - annotations: - "helm.sh/hook": pre-install - "helm.sh/hook-delete-policy": hook-succeeded -spec: - template: - metadata: - name: "{{ template "common.names.fullname" . }}-preinstall-hook" - labels: - app.kubernetes.io/managed-by: {{ .Release.Service | quote }} - app.kubernetes.io/instance: {{ .Release.Name | quote }} - helm.sh/chart: {{ template "common.names.chart" . }} - spec: - restartPolicy: Never - containers: - - name: pre-install-job - image: "alpine:latest" - command: ["chown", "-R", "{{ .Values.runAsUser }}:{{ .Values.runAsGroup }}", "{{ .Values.appVolumeMounts.export.mountPath }}"] - volumeMounts: {{ include "common.storage.configureAppVolumeMountsInContainer" .Values | nindent 12 }} - volumes: {{ include "common.storage.configureAppVolumes" .Values | nindent 8 }} diff --git a/test/minio/1.6.62/templates/secrets.yaml b/test/minio/1.6.62/templates/secrets.yaml deleted file mode 100644 index 4085fd585b..0000000000 --- a/test/minio/1.6.62/templates/secrets.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: {{ template "minio.secretName" . }} - labels: {{ include "common.labels" . | nindent 4 }} -type: Opaque -data: - accesskey: {{ if .Values.accessKey }}{{ .Values.accessKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 20 | b64enc | quote }}{{ end }} - secretkey: {{ if .Values.secretKey }}{{ .Values.secretKey | toString | b64enc | quote }}{{ else }}{{ randAlphaNum 40 | b64enc | quote }}{{ end }} - {{ if eq (include "minio.certAvailable" .) "true" }} - certPublicKey: {{ (include "minio.cert.publicKey" .) | toString | b64enc | quote }} - certPrivateKey: {{ (include "minio.cert.privateKey" .) | toString | b64enc | quote }} - {{ end }} diff --git a/test/minio/1.6.62/templates/service.yaml b/test/minio/1.6.62/templates/service.yaml deleted file mode 100644 index cbb4afc3dc..0000000000 --- a/test/minio/1.6.62/templates/service.yaml +++ /dev/null @@ -1,13 +0,0 @@ -{{ if eq (include "minio.hostNetworking" .) "false" }} -{{ $svc := .Values.service }} -{{ $selectors := list }} -{{ $selectors = mustAppend $selectors (dict "key" "app" "value" (include "common.names.name" .) ) }} -{{ $selectors = mustAppend $selectors (dict "key" "release" "value" .Release.Name ) }} -{{ $ports := list }} -{{ $ports = mustAppend $ports (dict "name" "api" "port" $svc.nodePort "nodePort" $svc.nodePort "targetPort" (.Values.service.nodePort | int)) }} -{{ $ports = mustAppend $ports (dict "name" "console" "port" $svc.consolePort "nodePort" $svc.consolePort "targetPort" (.Values.service.consolePort | int)) }} -{{ $params := . }} -{{ $_ := set $params "commonService" (dict "type" "NodePort" "ports" $ports ) }} -{{ $_1 := set .Values "extraSelectorLabels" $selectors }} -{{ include "common.classes.service" $params }} -{{ end }} diff --git a/test/minio/1.6.62/templates/serviceaccount.yaml b/test/minio/1.6.62/templates/serviceaccount.yaml deleted file mode 100644 index 12bd3f4a39..0000000000 --- a/test/minio/1.6.62/templates/serviceaccount.yaml +++ /dev/null @@ -1 +0,0 @@ -{{ include "common.serviceaccount" . }} diff --git a/test/minio/1.6.62/templates/tests/deployment-check.yaml b/test/minio/1.6.62/templates/tests/deployment-check.yaml deleted file mode 100644 index af842d4690..0000000000 --- a/test/minio/1.6.62/templates/tests/deployment-check.yaml +++ /dev/null @@ -1,21 +0,0 @@ -{{- $serviceName := (include "common.names.fullname" .) -}} -apiVersion: v1 -kind: Pod -metadata: - name: "{{ .Release.Name }}-minio-test" - labels: - app: {{ .Release.Name }} - release: {{ .Release.Name }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: test-curl - image: alpine/curl - imagePullPolicy: "IfNotPresent" - command: - - /bin/sh - - -ec - - | - curl --connect-timeout 5 --max-time 10 --retry 5 --retry-delay 15 --retry-max-time 90 --retry-all-errors -ksf http://{{ $serviceName }}:{{ .Values.service.consolePort }}/ - restartPolicy: Never diff --git a/test/minio/1.6.62/test_values.yaml b/test/minio/1.6.62/test_values.yaml deleted file mode 100644 index 9ecabb02c7..0000000000 --- a/test/minio/1.6.62/test_values.yaml +++ /dev/null @@ -1,23 +0,0 @@ -appVolumeMounts: - export: - emptyDir: true - mountPath: /export -distributedIps: [] -distributedMode: false -dnsConfig: - options: [] -emptyDirVolumes: true -environmentVariables: [] -extraAppVolumeMounts: [] -extraArgs: [] -image: - pullPolicy: IfNotPresent - repository: minio/minio - tag: RELEASE.2022-11-10T18-20-21Z -minioDomain: null -runAsGroup: 473 -runAsUser: 473 -service: - consolePort: 32325 - nodePort: 32324 -updateStrategy: RollingUpdate