Files
0247b67882 Add phase 1 implementation of new storage spec (#1899)
* Add phase 1 implementation of new storage spec

Signed-off-by: tomcli <[email protected]>

* Storagespec refactoring

* Some refactoring

- Changed GetStorageURI func to always return the storageUri field and not impute from StorageSpec information
- Instead have the addStorageSpecAnnotations func set the storage uri annotation if a path is specified
- Deduplicated logic in predictor.go which sets the storage uri annotation from explicit storageUri field, and fail if the annotation is already set (i.e. if both storage.path and storageUri are specified)
- Renamed CreateStorageSpecSecretVolumeAndEnv func to CreateStorageSpecSecretEnvs and refactored the logic to fail if an explicit secret storageKey is not found, but not if it's a default one
- Renamed default storage keys to look up to "default" and "default_s3" depending on whether storage type information was provided
- Moved some string names to constants
- Removed now-not-applicable predictor_test.go and explainer_test.go
- Extended tests in storage_initializer_injector_test.go to cover StorageSpec cases

* Also check for existence of StorageSpec in IsMMSPredictor func

Co-authored-by: Nick Hill <[email protected]>
Signed-off-by: tomcli <[email protected]>

* update python server with the new env variables

Signed-off-by: tomcli <[email protected]>

* Update example due to the recent sklearn library upgrade

Signed-off-by: tomcli <[email protected]>

* change static int to compute from variable length

Signed-off-by: tomcli <[email protected]>

* abstract predictor and explainer validate function. Also add storageSpec validation

Signed-off-by: tomcli <[email protected]>

* remove reduntant storageSpec check in the service_account_credentials.go

Signed-off-by: tomcli <[email protected]>

* Add aws anonymous mode flog

Signed-off-by: tomcli <[email protected]>

* generate python sdk and add storagespec s3 e2e test

Signed-off-by: tomcli <[email protected]>

* update ci overlays

Signed-off-by: tomcli <[email protected]>

* Proxy minio service to CI client.

Signed-off-by: tomcli <[email protected]>

* move minio model init to a k8s job

Signed-off-by: tomcli <[email protected]>

* deploy minio job with permitted ns

Signed-off-by: tomcli <[email protected]>

* Add non-codegen import

Signed-off-by: tomcli <[email protected]>

* clean up new merges

Signed-off-by: tomcli <[email protected]>

Co-authored-by: Nick Hill <[email protected]>
2022-02-21 16:11:56 -08:00

14 lines
273 B
YAML

apiVersion: serving.kserve.io/v1beta1
kind: InferenceService
metadata:
name: example-sklearn-isvc
spec:
predictor:
sklearn:
storage:
key: localMinIO
path: sklearn
# schemaPath: null
parameters:
bucket: example-models