From 85cf6eeb1a60bf8456b29e5a143c64945560ce94 Mon Sep 17 00:00:00 2001 From: Sandro La Bruzzo Date: Wed, 16 Oct 2024 10:45:48 +0200 Subject: [PATCH] fixed bucket creation updated tenant yaml --- envs/local/minio-tenant.yaml | 8 +++++++- modules/minio/minio-bucket.yaml | 34 --------------------------------- 2 files changed, 7 insertions(+), 35 deletions(-) delete mode 100644 modules/minio/minio-bucket.yaml diff --git a/envs/local/minio-tenant.yaml b/envs/local/minio-tenant.yaml index 0ec38fa..ed643b5 100644 --- a/envs/local/minio-tenant.yaml +++ b/envs/local/minio-tenant.yaml @@ -257,7 +257,13 @@ tenant: # - name: my-minio-bucket # objectLock: false # optional # region: us-east-1 # optional - buckets: [ "workflow-logs", "binaries", "graph"] + buckets: + - name: workflow-logs + - name: binaries + - name: graph + + + # [ "workflow-logs", "binaries", "graph"] ### # Array of Kubernetes secrets from which the Operator generates MinIO users during tenant provisioning. # diff --git a/modules/minio/minio-bucket.yaml b/modules/minio/minio-bucket.yaml deleted file mode 100644 index e476cba..0000000 --- a/modules/minio/minio-bucket.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: batch/v1 -kind: Job -metadata: - name: create-bucket - namespace: block-storage -spec: - template: - spec: - containers: - - name: createbucket - image: amazon/aws-cli - command: ["aws"] - args: - - s3api - - create-bucket - - --bucket - - postgres - - --endpoint-url - - http://minio:80 - env: - - name: AWS_ACCESS_KEY_ID - valueFrom: - secretKeyRef: - name: minio-secret - key: accesskey - - - name: AWS_SECRET_ACCESS_KEY - valueFrom: - secretKeyRef: - name: minio-secret - key: secretkey - - restartPolicy: Never - backoffLimit: 1