// CreateBucketAccess creates a bucket access object or return an existing bucket access object
// This is used by bucket access request unit tests
CreateBucketAccess creates a bucket access object or return an existing bucket access object
This is used by bucket access request unit tests
// CreateBucketAccess creates a bucket access object or return an existing bucket access object // This is used by bucket access request unit tests
func CreateBucketAccess(ctx context.Context, client bucketclientset.Interface, ba *types.BucketAccess) (*types.BucketAccess, error) {
	ba, err := client.ObjectstorageV1alpha1().BucketAccesses().Create(ctx, ba, metav1.CreateOptions{})
	if (err != nil) && apierrors.IsAlreadyExists(err) {
		ba, err = client.ObjectstorageV1alpha1().BucketAccesses().Get(ctx, ba.Name, metav1.GetOptions{})
	}
	return ba, err
}
func CreateBucketAccess ( ctx context . Context , client bucketclientset . Interface , ba * types . BucketAccess ) ( * types . BucketAccess , error ) { ba , err := client . ObjectstorageV1alpha1 ( ) . BucketAccesses ( ) . Create ( ctx , ba , metav1 . CreateOptions { } ) if ( err != nil ) && apierrors . IsAlreadyExists ( err ) { ba , err = client . ObjectstorageV1alpha1 ( ) . BucketAccesses ( ) . Get ( ctx , ba . Name , metav1 . GetOptions { } ) } return ba , err }
CreateBucketAccess creates a bucket access object or return an existing bucket access object
This is used by bucket access request unit tests
CreateBucketAccess creates a bucket access object or return an existing bucket access object This is used by bucket access request unit tests