fixed bucket creation updated tenant yaml

This commit is contained in:
Sandro La Bruzzo 2024-10-16 10:45:48 +02:00
parent 7528675590
commit 85cf6eeb1a
2 changed files with 7 additions and 35 deletions

View File

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

View File

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