benfiola / minio-operator-ext

A Kubernetes operator that allows for declarative management of MinIO resources
10 stars 0 forks source link

Add 'group' and 'group binding' custom resources and implementation #9

Closed benfiola closed 4 months ago

benfiola commented 4 months ago

Because an in-flight PR will add group support to policy bindings, the operator should probably also allow for the creation of group resources themselves.

Example:

apiVersion: bfiola.dev/v1
kind: MinioUser
metadata:
  name: ben
spec:
  name: ben
  tenantRef:
    name: ...
    namespace: ...
---
apiVersion: bfiola.dev/v1
kind: MinioGroup
metadata:
  name: sample-group
spec:
  name: sample-group
  tenantRef:
    name: ...
    namespace: ...
---
apiVersion: bfiola.dev/v1
kind: MinioGroupBinding
metadata:
  name: ben-to-sample-group
spec:
  user: ben
  group: sample-group
  tenantRef:
    name: ...
    namespace: ...

The above should create a new group sample-group and add the user ben to it.

benfiola commented 4 months ago

Created a [PR] to implement the MinioGroup and MinioGroupBinding resources.