-
Notifications
You must be signed in to change notification settings - Fork 119
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
bug, deep coupling: virtctl.sh expects virtctl binary to be present in a certain folder #1277
Comments
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
We want to remove virtctl.sh in the long run [1], for now we are issuing a deprecation warning. [1]: kubevirt#1277 Signed-off-by: Daniel Hiller <[email protected]>
We want to remove virtctl.sh in the long run [1], for now we are issuing a deprecation warning. [1]: kubevirt#1277 Signed-off-by: Daniel Hiller <[email protected]>
* virtctl.sh: add deprecation warning We want to remove virtctl.sh in the long run [1], for now we are issuing a deprecation warning. [1]: #1277 Signed-off-by: Daniel Hiller <[email protected]> * virtctl.sh: add fallback to parent directory Since there might be usages outside kubevirt that source kubevirtci cluster-up folder from kubevirt main repo, we add a fallback that uses the parent directory. Signed-off-by: Daniel Hiller <[email protected]> --------- Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
@dhiller I just hit the deprecation message during development:
Even after reading the issue description, it's unclear to me what the recommended replacement for my usage of |
Hey @andreabolognani thanks for pointing this out! I figure this has happened while you were working on k/kubevirt, right? Actually this will be addressed with this PR: kubevirt/kubevirt#12872 There I am replacing the kubevirtci virtctl.sh with a version that is inside k/kubevirt. Will that work for you or do we need to keep the virtctl.sh in a way? |
@andreabolognani I've addressed this in the issue comment - hope that makes it clear now. |
Correct.
So IIUC instead of calling Hopefully |
I understand where you are coming from - we could just add a wrapper |
I think a wrapper would be a good way to go about it. Bonus points if By the way, and this is only tangentially related: it used to be the case, a few years back, that you could run |
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
KubeVirtCI project has a circular dependency on the virtctl binary [1] - it expects the binary to be present at a certain path. Thus we create our own version of virtctl.sh in the hack folder. We then replace all calls to `virtctl.sh` with the new location. [1]: kubevirt/kubevirtci#1277 Signed-off-by: Daniel Hiller <[email protected]>
Issue
When working on moving kubevirtci into it's own folder we noticed that kubevirtci expects the
virtctl
binary from k/kubevirt to be present in the system at a certain hard coded path 1 .This is a deep coupling from one project to another which forces users of
virtctl.sh
to "somehow" provide said binary. This is likely a leftover of the move of kubevirtci to it's own repository.See #94 (review)
Short-term
Short term it should be band-aided firstly by deprecating the
virtctl.sh
binary by issuing a WARN to stderr. This should give users time to move to other ways of calling thevirtctl
binary.Also repos that show such calls 3, namely
should be updated to use the proper script from kubevirt/kubevirt (if necessary).
Search queries:
virtctl.sh start|...
- https://github.com/search?q=org%3Akubevirt+AND+-repo%3Akubevirt%2Fkubevirt+AND+%28%28%22virtctl.sh+console%22%29+OR+%28%22virtctl.sh+vnc%22%29+OR+%28%22virtctl.sh+start%22%29+OR+%28%22virtctl.sh+stop%22%29+OR+%28%22virtctl.sh+migrate%22%29%29&type=codekubectl.sh start|...
- https://github.com/search?q=org%3Akubevirt+AND+-repo%3Akubevirt%2Fkubevirt+AND+%28%28%22kubectl.sh+console%22%29+OR+%28%22kubectl.sh+vnc%22%29+OR+%28%22kubectl.sh+start%22%29+OR+%28%22kubectl.sh+stop%22%29+OR+%28%22kubectl.sh+migrate%22%29+OR+%28%22kubectl.sh+virt%22%29%29&type=codevirtctl.sh
- https://github.com/search?q=org%3Akubevirt+AND++-repo%3Akubevirt%2Fkubevirt+AND+%22virtctl.sh%22&type=codeLong-term
Long term
virtctl.sh
should be removed. It will be replaced by a script inside k/kubevirt below the hack folder with this PR: kubevirt/kubevirt#12872Workaround
An easy workaround would be installing it as a krew plugin and then using
kubectl virt
2/kind bug
/kind tracker
The text was updated successfully, but these errors were encountered: