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

Fix to add missing parameters in case of existing bucket id #69

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkg/bucketclaim/bucketclaim.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ func (b *bucketClaimListener) provisionBucketClaimOperation(ctx context.Context,
UID: bucketClaim.ObjectMeta.UID,
}

protocolCopy := make([]v1alpha1.Protocol, len(bucketClaim.Spec.Protocols))
copy(protocolCopy, bucketClaim.Spec.Protocols)

bucket.Spec.Protocols = protocolCopy
_, err = b.buckets().Update(ctx, bucket, metav1.UpdateOptions{})
if err != nil {
klog.V(3).ErrorS(err, "Error updating existing bucket",
Expand Down