obc

package
v1.21.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 13 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package obc holds the ObjectBucketClaim test helpers: the provisioner StorageClass constructor, the bound/delete lifecycle waiters, and a per-OBC S3 client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteAndWait

func DeleteAndWait(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, namespace, name string)

DeleteAndWait deletes the OBC and waits for its backing ObjectBucket (and thus the rgw bucket) to be garbage-collected by the provisioner.

func NewS3Agent

func NewS3Agent(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, store *sharedstore.Sharedstore, namespace, obcName string) *rgw.S3Agent

NewS3Agent builds an S3 client for the bucket provisioned by obcName, using the credentials in the OBC's secret and the store's endpoint.

func RequireBound

RequireBound creates obc and waits for it and its backing ObjectBucket to bind, returning the live OBC; it aborts the caller if binding fails.

func StorageClass

func StorageClass(name string, objectStore *cephv1.CephObjectStore) *storagev1.StorageClass

StorageClass returns a StorageClass for the lib-bucket-provisioner bucket provisioner backed by objectStore, for use by ObjectBucketClaims.

func Update

func Update(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, namespace, name string, mutate func(*bktv1alpha1.ObjectBucketClaim))

Update applies mutate to the live OBC and updates it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL