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