-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support listing blobs recursively in azure-blob scaler #2036
Conversation
Closes #1789 Signed-off-by: Ahmed ElSayed <[email protected]>
pkg/scalers/azure_blob_scaler.go
Outdated
if !strings.HasSuffix(meta.blobPrefix, defaultBlobDelimiter) { | ||
meta.blobPrefix += defaultBlobPrefix | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as mentioned on the issue #1789
One complication: it seems that the scaler was appending
blobDelimiter
toblobPrefix
, which isn't right. To avoid having a breaking change, I append the defaultblobDelimiter
, i.e:/
, to theblobPrefix
if it's not there. But we might consider removing that in the future. It'll be a breaking change though, so we might only do it for v3?
Signed-off-by: Ahmed ElSayed <[email protected]>
Thanks for doing this @ahmelsayed! I've added a comment on the docs PR, though, as this feels like a separate flag on the scaler: kedacore/keda-docs#512 (comment) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but as I mentioned on the issue, I wouldn't be afraid to introduce a breaking change in the next release, if you think that it is the right solution (with proper documentation).
It's up to you to decide 🤷♂️
Any update on this? |
@ahmelsayed Any update on this? |
Any update on this @ahmelsayed ? |
Checklist
Fixes #1789