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 ¶
- func DeleteAndWait(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, ...)
- func NewS3Agent(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, ...) *rgw.S3Agent
- func RequireBound(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, ...) *bktv1alpha1.ObjectBucketClaim
- func StorageClass(name string, objectStore *cephv1.CephObjectStore) *storagev1.StorageClass
- func Update(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, ...)
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 ¶
func RequireBound(ctx context.Context, t *testing.T, k8sh *utils.K8sHelper, obc *bktv1alpha1.ObjectBucketClaim) *bktv1alpha1.ObjectBucketClaim
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.
Types ¶
This section is empty.