modelmesh-serving icon indicating copy to clipboard operation
modelmesh-serving copied to clipboard

storage-secret-config should have the same parameters as Kserve

Open VedantMahabaleshwarkar opened this issue 1 year ago • 9 comments

Is your feature request related to a problem? If so, please describe.

The json format of the storage-secret-config in ModelMesh expects the default bucket to be specified as follows : "default_bucket":"modelmesh-example-models"
However, this is not consistent with the Kserve implementation, which expects the default bucket to be specified as follows : "bucket":"modelmesh-example-models".

This mismatch in the key is frustrating. Following a consistent format will allow users to have a better experience across both serving stacks (kserve and modelmesh) Describe your proposed solution

Match the storage-secret-config that Kserve has. i.e the key should be bucket rather than default_bucket

VedantMahabaleshwarkar avatar Nov 06 '23 19:11 VedantMahabaleshwarkar

Hello, thanks for pointing this out! I think this is actually just a documentation problem

In the adapter code that processes the storage configuration, bucket is supported and takes priority over default_bucket (which is marked as deprecated), see these lines in the adapter repo. So I think it should "just work" if you use bucket, but let me know if you get an error!

If bucket does work, then we should see about replacing default_bucket -> bucket everywhere that it is used in this repo.

tjohnson31415 avatar Nov 06 '23 22:11 tjohnson31415

I am new to open source, can I start contributing from this issue ?

AHB102 avatar Nov 16 '23 17:11 AHB102

Sure, @AHB102. @tjohnson31415 gave some insight above, please ask if you need any clarification. More information about the storage-config secret can be found here.

rafvasq avatar Nov 20 '23 15:11 rafvasq

@tjohnson31415 Can you please explain what exactly must be changed ? There are discrepancies with "bucket" and "default_bucket" in the json format of storage-secret-config in ModelMesh, right ? So we should just make one of them the standard ?

AHB102 avatar Dec 29 '23 09:12 AHB102

Hi @AHB102, as noted in the issue description, using "bucket" should be the standard to match with KServe, so that is already decided.

In this ModelMesh repo, the documentation and example files are using "default_bucket", see the GH search results to see where we reference it. As I noted in my previous comment, use of "bucket" should already be fully supported in the code. The changes for this issue would be to modify every place that "default_bucket" is referenced and change it to just "bucket".

As a validation of the change, you should also test that the quickstart install still works after modifying quickstart.yaml to use "bucket" instead of "default_bucket".

tjohnson31415 avatar Jan 09 '24 17:01 tjohnson31415

@tjohnson31415 Got it, Identify and replace every reference of "default_bucket" with "bucket" and then test quickstart installation to validate it. Can I work on it ?

AHB102 avatar Jan 12 '24 12:01 AHB102

Hi @AHB102, just wanted to confirm whether you still plan to work on this. I can assign it to you if so!

rafvasq avatar Jan 31 '24 17:01 rafvasq

@rafvasq Yup, I would like to work on it.

AHB102 avatar Jan 31 '24 17:01 AHB102

Great, thanks @AHB102!

rafvasq avatar Jan 31 '24 20:01 rafvasq

@rafvasq @AHB102

I can take this issue up if no one's currently working on it

aayushsss1 avatar May 16 '24 11:05 aayushsss1

@aayushsss1 sure, feel free!

rafvasq avatar May 27 '24 20:05 rafvasq