summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cli/library/openshift_container_binary_sync.py
Commit message (Collapse)AuthorAgeFilesLines
* Move more plugins to lib_utilsMichael Gugino2018-01-101-205/+0
| | | | | | | This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
* Remove all uses of openshift.common.admin_binaryScott Dodson2017-12-071-2/+5
| | | | Replace with `oc adm`
* container_binary_sync: Remove atomic prefix from imageSteve Milner2017-11-071-1/+28
| | | | Signed-off-by: Steve Milner <smilner@redhat.com>
* bug: container_binary_sync no longer moves upon symlinksSteve Milner2017-08-151-0/+5
| | | | | | | | | | | | | | | | | With origin 1.5, /usr/local/bin/oc was a symlink to /usr/local/bin/openshift. During the container_binary_sync updated versions of both binaries are copied to the host. First openshift is copied to /usr/local/bin/openshift followed by copying oc to /usr/local/bin/oc. Since oc is a symlink back to /usr/local/bin/openshift the end result was everything linked to oc. This change adds a check before copying a binary. If the destination is a symlink then said symlink is removed before copying the new binary over. Fixed #4965 Reference: https://github.com/openshift/openshift-ansible/issues/4965
* cli_image: do not require Docker when using CRI-OGiuseppe Scrivano2017-08-031-14/+50
| | | | | | Use atomic to copy the CLI binaries to the host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Remove vim configuration from Python filesRodolfo Carvalho2017-05-091-2/+0
| | | | | | | In a project where contributors are free to use whatever editor they want and we have linting tools that verify the proper formatting of Python files, it should not be required to have a vim-specific line in Python files.
* update tests and flake8/pylint fixesJason DeTiberus2016-11-291-3/+3
|
* Switch from "oadm" to "oc adm" and fix bug in binary sync.Devan Goodwin2016-10-191-1/+6
| | | | | | | | Found bug syncing binaries to containerized hosts where if a symlink was pre-existing, but pointing to the wrong destination, it would not be corrected. Switched to using oc adm instead of oadm.
* Copy openshift binaries instead of using wrapper script.Devan Goodwin2016-07-211-0/+131
For containerized masters, we previously create a wrapper script to run the docker CLI image and clean up afterward, but this approach is much slower than having the binary on the native system. Instead we now use an ansible module to handle the logic of syncing the various OpenShift binaries and symlinks for client tools out onto the host. The module will correctly report changed if modifications were needed. Substantial speed improvement for containerized installs which requires many openshift/oc commands.