Implement base operator #1
@ -2,4 +2,10 @@
|
|||||||
|
|
||||||
Automatically create Minio buckets based on K8S CRD.
|
Automatically create Minio buckets based on K8S CRD.
|
||||||
|
|
||||||
WIP, early project
|
WIP, early project
|
||||||
|
|
||||||
|
Apply all K8s config files manually:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat yaml/*.yaml | kubectl apply -f -
|
||||||
|
```
|
25
test/first-test.yaml
Normal file
25
test/first-test.yaml
Normal 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
|
@ -66,9 +66,6 @@ spec:
|
|||||||
enum:
|
enum:
|
||||||
- compliance
|
- compliance
|
||||||
- governance
|
- governance
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# either Namespaced or Cluster
|
# either Namespaced or Cluster
|
||||||
scope: Namespaced
|
scope: Namespaced
|
||||||
names:
|
names:
|
||||||
@ -81,4 +78,5 @@ spec:
|
|||||||
# shortNames allow shorter string to match your resource on the CLI
|
# shortNames allow shorter string to match your resource on the CLI
|
||||||
shortNames:
|
shortNames:
|
||||||
- mbs
|
- mbs
|
||||||
- buckets
|
- buckets
|
||||||
|
---
|
||||||
|
@ -45,4 +45,5 @@ spec:
|
|||||||
kind: MinioInstance
|
kind: MinioInstance
|
||||||
# shortNames allow shorter string to match your resource on the CLI
|
# shortNames allow shorter string to match your resource on the CLI
|
||||||
shortNames:
|
shortNames:
|
||||||
- mis
|
- mis
|
||||||
|
---
|
||||||
|
@ -30,3 +30,4 @@ roleRef:
|
|||||||
apiGroup: rbac.authorization.k8s.io
|
apiGroup: rbac.authorization.k8s.io
|
||||||
kind: Role
|
kind: Role
|
||||||
name: minio-buckets
|
name: minio-buckets
|
||||||
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user