bentoml / bentoctl

Fast model deployment on any cloud 🚀
https://bentoml.com
Other
175 stars 30 forks source link

Versioning for operators #132

Closed jjmachan closed 2 years ago

jjmachan commented 2 years ago
[operator.name] = {
            "path": os.path.abspath(operator.path),
            "git_url": git_url,
            "git_branch": git_branch,
            "is_local": is_local,
      "version": GIT_TAG,
        }
bentoctl operator update aws-lambda -> update to the latest tag
bentoctl operator update aws-lambda --pre -> update to the latest commit on main
yubozhao commented 2 years ago

Update on this proposal: Update CLI commands, with --version option.

bentoctl operator install aws-lambda --version 0.1.0
bentoctl operator update aws-lambda --version 0.2.0

Update the operator list json to new format:

{
     "operator.name": {
            "path": operator.path,
            "is_official": is_official,
            "is_local": is_local,
           "version": GIT_TAG,  // new addition
        }
}

Update deployment config.yaml with additional operator version

api_version: v1
name: quickstart
operator:
    name: aws-lambda
    version: OPTIONAL, if not provided will use the latest version from git repo
template: terraform
spec:
    region: us-west-1
    timeout: 10
    memory_size: 512

Add version field to the operator instance

Also, include version information in tracking.