From e16373d94de9e2db0004dd184554266166e7f7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Mon, 19 Feb 2024 14:34:26 +0100 Subject: [PATCH] Add MinIO manifests --- deploy | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/deploy b/deploy index 66dea37..7f23009 100755 --- a/deploy +++ b/deploy @@ -5,7 +5,8 @@ set -o pipefail -FLUX_MANIFEST_PATH="clusters/minikube" +# Namespaces +FLUX_MANIFEST_PATH="clusters/dev" readonly FLUX_MANIFEST_PATH APP_NAMESPACE="app" readonly APP_NAMESPACE @@ -15,6 +16,10 @@ MONITORING_NAMESPACE="monitoring" readonly MONITORING_NAMESPACE SPINNAKER_NAMESPACE="cicd" readonly SPINNAKER_NAMESPACE +MINIO_NAMESPACE="monitoring" +readonly MINIO_NAMESPACE + +# Helm Chart versions PGSQLHA_CHART_VERSION="12.3.7" readonly PGSQLHA_CHART_VERSION PGSQLHA_OCI_URL="oci://registry-1.docker.io/bitnamicharts/postgresql-ha" @@ -29,6 +34,8 @@ SPINNAKER_OPERATOR_CHART_VERSION="1.8.11" readonly SPINNAKER_OPERATOR_CHART_VERSION TRIVY_CHART_VERSION="0.18.4" readonly TRIVY_CHART_VERSION +MINIO_CHART_VERSION="4.3.7" +readonly MINIO_CHART_VERSION mkdir -p "${FLUX_MANIFEST_PATH}" @@ -108,3 +115,15 @@ printf "Using flux to create Sources and HelmReleases\n" --namespace "${SECSCAN_NAMESPACE}" \ --source=HelmRepository/aqua \ --export > "${FLUX_MANIFEST_PATH}/trivy.yaml" + +# MinIO Object Storage +./flux create source helm minio \ + --url minio-operator https://operator.min.io \ + --namespace "${MINIO_NAMESPACE}" \ + --export > "${FLUX_MANIFEST_PATH}/source_minio.yaml" +./flux create helmrelease minio \ + --chart minio-operator \ + --chart-version "${MINIO_CHART_VERSION}" \ + --namespace "${MINIO_NAMESPACE}" \ + --source=HelmRepository/ \ + --export > "${FLUX_MANIFEST_PATH}/minio.yaml"