Skip to content

Commit

Permalink
Add bump kubevirtci script
Browse files Browse the repository at this point in the history
Script would update hack/config-default.sh,
and then its possible to run make generate in order to fetch
newest kubevirtci cluster-up folder

Signed-off-by: Or Shoval <[email protected]>
  • Loading branch information
oshoval committed Jan 6, 2020
1 parent b755c56 commit ab32e88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ Typical cases where code regeneration should be triggered are:

We have a check in our CI system, so that you don't miss when `make generate` needs to be called.

* Another case is when kubevirtci is updated, in order to vendor cluster-up run `hack/bump-kubevirtci.sh` and then
`make generate`

### Testing

After a successful build you can run the *unit tests*:
Expand Down
4 changes: 4 additions & 0 deletions hack/bump-kubevirtci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#/bin/bash
val=$(git ls-remote https://github.com/kubevirt/kubevirtci | grep HEAD | awk '{print $1}')
sed -i "/^[[:blank:]]*kubevirtci_git_hash[[:blank:]]*=/s/=.*/=\"${val}\"/" hack/config-default.sh
git --no-pager diff hack/config-default.sh | grep "kubevirtci_git_hash"

0 comments on commit ab32e88

Please sign in to comment.