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

Commit b1a711b

Browse files
authored
Merge pull request #69 from mukhoakash/fix-params
Fix to add missing parameters in case of existing bucket id
2 parents 0d05e64 + e9539da commit b1a711b

File tree

1 file changed

+4
-0
lines changed
  • container-object-storage-interface-controller/pkg/bucketclaim

1 file changed

+4
-0
lines changed

Diff for: container-object-storage-interface-controller/pkg/bucketclaim/bucketclaim.go

+4
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ func (b *bucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
131131
UID: bucketClaim.ObjectMeta.UID,
132132
}
133133

134+
protocolCopy := make([]v1alpha1.Protocol, len(bucketClaim.Spec.Protocols))
135+
copy(protocolCopy, bucketClaim.Spec.Protocols)
136+
137+
bucket.Spec.Protocols = protocolCopy
134138
_, err = b.buckets().Update(ctx, bucket, metav1.UpdateOptions{})
135139
if err != nil {
136140
klog.V(3).ErrorS(err, "Error updating existing bucket",

0 commit comments

Comments
 (0)