Create first test bucket

This commit is contained in:
Pierre HUBERT 2023-05-05 20:05:22 +02:00
parent 68c27a310d
commit 4b7748bfbf
5 changed files with 37 additions and 6 deletions

View File

@ -3,3 +3,9 @@
Automatically create Minio buckets based on K8S CRD.
WIP, early project
Apply all K8s config files manually:
```bash
cat yaml/*.yaml | kubectl apply -f -
```

25
test/first-test.yaml Normal file
View File

@ -0,0 +1,25 @@
apiVersion: v1
kind: Secret
metadata:
name: minio-root
type: Opaque
data:
accessKey: bWluaW8=
secretKey: bWluaW8=
---
apiVersion: "communiquons.org/v1"
kind: MinioInstance
metadata:
name: my-minio-instance
spec:
endpoint: http://minio:9000/
credentials: minio-root
---
apiVersion: "communiquons.org/v1"
kind: MinioBucket
metadata:
name: first-bucket
spec:
instance: my-minio-instance
name: first-bucket
secret: bucket-secret

View File

@ -66,9 +66,6 @@ spec:
enum:
- compliance
- governance
# either Namespaced or Cluster
scope: Namespaced
names:
@ -82,3 +79,4 @@ spec:
shortNames:
- mbs
- buckets
---

View File

@ -46,3 +46,4 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- mis
---

View File

@ -30,3 +30,4 @@ roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: minio-buckets
---