Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Commit 80ba720

Browse files
committed
Updating the DriverDeleteBucket call with the DeleteContext
1 parent 7cef856 commit 80ba720

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
k8s.io/client-go v0.24.2
1414
k8s.io/klog/v2 v2.70.1
1515
sigs.k8s.io/container-object-storage-interface-api v0.0.0-20220806044417-5d7517114883
16-
sigs.k8s.io/container-object-storage-interface-spec v0.0.0-20220811182913-3c421cfc2830
16+
sigs.k8s.io/container-object-storage-interface-spec v0.1.1-0.20221006174327-ec782953b8ac
1717
sigs.k8s.io/controller-runtime v0.12.3
1818
)
1919

Diff for: go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
727727
rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=
728728
sigs.k8s.io/container-object-storage-interface-api v0.0.0-20220806044417-5d7517114883 h1:CtqK7l2m9Atw8L5daJdsXvVgxxvQkRBbJbUz7NiadD8=
729729
sigs.k8s.io/container-object-storage-interface-api v0.0.0-20220806044417-5d7517114883/go.mod h1:YiB+i/UGkzqgODDhRG3u7jkbWkQcoUeLEJ7hwOT/2Qk=
730-
sigs.k8s.io/container-object-storage-interface-spec v0.0.0-20220811182913-3c421cfc2830 h1:o8/7mIJCflt33epl4TZNS/+M5MktS8fQvcNuN8p235k=
731-
sigs.k8s.io/container-object-storage-interface-spec v0.0.0-20220811182913-3c421cfc2830/go.mod h1:SzF/yVSh88TgYdBOAXqhT96XjU8pCQtoeQKxzIOOmWQ=
730+
sigs.k8s.io/container-object-storage-interface-spec v0.1.1-0.20221006174327-ec782953b8ac h1:M1ZBBDJVWw3gDmE+kZZmwQ6+29GbWhG9RMqx9oV0tEs=
731+
sigs.k8s.io/container-object-storage-interface-spec v0.1.1-0.20221006174327-ec782953b8ac/go.mod h1:SzF/yVSh88TgYdBOAXqhT96XjU8pCQtoeQKxzIOOmWQ=
732732
sigs.k8s.io/controller-runtime v0.12.3 h1:FCM8xeY/FI8hoAfh/V4XbbYMY20gElh9yh+A98usMio=
733733
sigs.k8s.io/controller-runtime v0.12.3/go.mod h1:qKsk4WE6zW2Hfj0G4v10EnNB2jMG1C+NTb8h+DwCoU0=
734734
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 h1:kDi4JBNAsJWfz1aEXhO8Jg87JJaPNLh5tIzYHgStQ9Y=

Diff for: pkg/bucket/bucket_controller.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ func (b *BucketListener) deleteBucketOp(ctx context.Context, bucket *v1alpha1.Bu
327327
// only when the retain policy is set to Delete
328328
if bucket.Spec.DeletionPolicy == v1alpha1.DeletionPolicyDelete {
329329
req := &cosi.DriverDeleteBucketRequest{
330-
BucketId: bucket.Status.BucketID,
330+
BucketId: bucket.Status.BucketID,
331+
DeleteContext: bucket.Spec.Parameters,
331332
}
332333

333334
if _, err := b.provisionerClient.DriverDeleteBucket(ctx, req); err != nil {

0 commit comments

Comments
 (0)