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