-
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
globPattern does not work with hierarchical namespace while using azure-blob trigger #6492
Comments
I haven't dug into it very deeply yet, but would you mind testing this first:
So, without de leading slash |
Of course, I think I tried that at some point when I was trying to figure out what the issue was originally along with several other iterations. I just tested to confirm the behavior as requested though, and unfortunately it results in the same behavior as initially described. |
Which version of KEDA do you use? |
KEDA version is 2.14.1 -- for context, I am using Azure k8s with the managed KEDA add-on so Azure manages the version. k8s version is 1.30.4 but despite that chart I linked to, the KEDA operator version is showing as 2.14.1 in the deployment spec Azure deployed. |
I guess that it's because the globPattern is applied using the flat API and maybe the response of that API isn't right for hierarchical storages. I'm not an expert about the storage API but maybe we could check the storage type to use one API or the other if that info is exposed somehow |
When attempting to use the azure-blob trigger on an Azure Data Lake Storage account leveraging a hierarchical namespace, it seems the
globPattern
parameter does not work.Example, say your storage account is
adlsaccount
, container iscontainer
and you have directory structure such as:I want the scaler to trigger only if the scaler detects a *.json file in folderA/subFolderA.
According to the documentation, I should be able to use something like this:
However, that does not work and it does not appear that the keda-operator logs indicate any reason why - the scaler will be healthy but will not activate. Using a double-asterisk makes no impact either.
We were able to work around this limitation with the common file prefix on the desired json files, as demonstrated below:
That work-around works fine in my use-case but ideally we would want to leverage the ability to use glob patterns to match the desired blob files for which we want the scaler trigger to be invoked.
It looks like the glob pattern is not getting applied in the
GetAzureBlobListLength
function defined here: https://github.com/kedacore/keda/blob/6340991f9178912d6daf73766a0e50e6b438b212/pkg/scalers/azure/azure_blob.goSomeone more knowledgeable than I may have an idea of how best to resolve.
The text was updated successfully, but these errors were encountered: