Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Versioning for operators #132

Closed
jjmachan opened this issue Apr 28, 2022 · 1 comment · Fixed by #134
Closed

Versioning for operators #132

jjmachan opened this issue Apr 28, 2022 · 1 comment · Fixed by #134
Assignees

Comments

@jjmachan
Copy link
Contributor

jjmachan commented Apr 28, 2022

  • version:
    • use github tag
[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
Copy link
Contributor

yubozhao commented May 3, 2022

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.

@yubozhao yubozhao linked a pull request May 5, 2022 that will close this issue
5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants