Skip to content
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

Improving the static version of KubeVirt to an autodiscovery of the l… #130

Merged
merged 2 commits into from
Feb 13, 2020

Conversation

ptrnull
Copy link
Contributor

@ptrnull ptrnull commented Jan 15, 2020

Improving the static version of KubeVirt to an autodiscovery way to avoid updates on the README.md each time a new KubeVirt version is released.

Signed-off-by: Pedro Ibáñez pedro@redhat.com

…ast version to avoid updates on the README each time a new KubeVirt version is released

Signed-off-by: Pedro Ibáñez <pedro@redhat.com>
@kubevirt-bot kubevirt-bot added the dco-signoff: yes Indicates the PR's author has DCO signed all their commits. label Jan 15, 2020
Copy link
Contributor

@iranzo iranzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Jan 15, 2020
README.md Outdated
@@ -58,11 +58,12 @@ $ minikube ssh -- test -e /dev/kvm \
Now you are finally ready to deploy KubeVirt using our operator (comparable to an installer):

```bash
$ kubectl apply -f https://github.com/kubevirt/kubevirt/releases/download/v0.24.0/kubevirt-operator.yaml
$ export KUBEVIRT_LAST_VERSION=$(curl -s https://api.github.com/repos/kubevirt/kubevirt/releases/latest | jq -r .tag_name)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This logic sadly does not work, as GH does not do semver based last, but only time based last

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

export KUBEVIRT_VERSION=$(curl -s https://api.github.com/repos/kubevirt/kubevirt/releases|grep tag_name|sort -V | tail -1 | awk -F':' '{print $2}' | sed 's/,//' | xargs | cut -d'-' -f1)

That's how we do it at Quickstart, sort -V takes care of semver sorting

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I had that in the past as well, but went back to static version numbres to make copy and pasting easy and less error prone

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The static version is a pain as somebody has to update the README every time there is a release, is that what you prefer to have?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fabiand how would you like to have it? static version or automatic version?

@fabiand
Copy link
Member

fabiand commented Jan 23, 2020 via email

…ic version to v0.25.0

Signed-off-by: Pedro Ibáñez <pedro@redhat.com>
@kubevirt-bot kubevirt-bot removed the lgtm Indicates that a PR is ready to be merged. label Jan 24, 2020
@ptrnull
Copy link
Contributor Author

ptrnull commented Jan 24, 2020

I'd like to stick to explicit versions in the demo. Simplicity over diifficult to read. The other option is to revive the thread about maintaining an repo to point to the latest version of certain "channels". There was a thread on kubevirt-dev on this

Then, it's done! roll-backed the magic, the static is back updated to v0.25.0.
LGTMs and approveds are welcome :)

@ptrnull
Copy link
Contributor Author

ptrnull commented Feb 6, 2020

@fabiand it can be merge, right? lgtm & approve welcomes :)

@iranzo
Copy link
Contributor

iranzo commented Feb 13, 2020

/lgtm
/approve

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Feb 13, 2020
@kubevirt-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: iranzo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 13, 2020
@kubevirt-bot kubevirt-bot merged commit bbc7eaf into kubevirt:master Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants