Bucket access (BucketAccess) represents a combination of parameters necessary to get access to a particular bucket.
A minimal bucket access block would include the name of the bucket claim, the name of the bucket access class, and the name of the Kubernetes secret that contains the credentials required for accessing the bucket, for example:
kind: BucketAccess
apiVersion: objectstorage.k8s.io/v1alpha1
metadata:
name: sample-access
spec:
bucketClaimName: sample-bucket
bucketAccessClassName: sample-bac
credentialsSecretName: sample-access-secretAfter you apply the configuration file with the bucket access definition, verify that the Kubernetes secret exists and can be attached to a Kubernetes pod:
kubectl get secret
<...>
NAME TYPE DATA AGE
sample-access-secret Opaque 1 11s