Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed bug in generateBucketName #220

Merged
merged 1 commit into from Jan 5, 2022

Conversation

dannyzaken
Copy link
Collaborator

when the prefix length is exactly maxBaseNameLen, the prefix is not truncated and as a result, the generated bucket name is invalid.

Signed-off-by: Danny Zaken dannyzaken@gmail.com

when the prefix length is exactly maxBaseNameLen, the prefix is not truncated and as a result the generated bucket name is invalid

Signed-off-by: Danny Zaken <dannyzaken@gmail.com>
@BlaineEXE
Copy link
Contributor

This looks good to me, but please clarify in the commit what exactly is making the generated name invalid. Is the generated name too long? Or is it an issue of not allowing multiple consecutive dashes? It's not fully clear to me.

@BlaineEXE
Copy link
Contributor

I did confirm that this patch fixes the issue in Rook upstream, and I do believe this is length-related.

@BlaineEXE BlaineEXE merged commit c1da958 into kube-object-storage:master Jan 5, 2022
BlaineEXE added a commit to BlaineEXE/rook that referenced this pull request Jan 5, 2022
The latest lib-bucket-provisioner has a corner case fix for a bucket
with `generateName` equal to exactly 27 chars, which will result in an
ObjectBucket with 64 chars. 63 chars is the max allowed by Kubernetes.

See:
kube-object-storage/lib-bucket-provisioner#220

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
mergify bot pushed a commit to rook/rook that referenced this pull request Jan 5, 2022
The latest lib-bucket-provisioner has a corner case fix for a bucket
with `generateName` equal to exactly 27 chars, which will result in an
ObjectBucket with 64 chars. 63 chars is the max allowed by Kubernetes.

See:
kube-object-storage/lib-bucket-provisioner#220

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit ae306e4)
parth-gr pushed a commit to parth-gr/rook that referenced this pull request Feb 22, 2022
The latest lib-bucket-provisioner has a corner case fix for a bucket
with `generateName` equal to exactly 27 chars, which will result in an
ObjectBucket with 64 chars. 63 chars is the max allowed by Kubernetes.

See:
kube-object-storage/lib-bucket-provisioner#220

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
parth-gr pushed a commit to parth-gr/rook that referenced this pull request Feb 22, 2022
The latest lib-bucket-provisioner has a corner case fix for a bucket
with `generateName` equal to exactly 27 chars, which will result in an
ObjectBucket with 64 chars. 63 chars is the max allowed by Kubernetes.

See:
kube-object-storage/lib-bucket-provisioner#220

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants