summaryrefslogtreecommitdiff
path: root/roles/openshift_cli/library
AgeCommit message (Collapse)Author
2018-01-10Move more plugins to lib_utilsMichael Gugino
This commit continues moving plugins into lib_utils. This commit does not move any plugins for add-on roles such as logging and metrics.
2017-12-07Remove all uses of openshift.common.admin_binaryScott Dodson
Replace with `oc adm`
2017-11-07container_binary_sync: Remove atomic prefix from imageSteve Milner
Signed-off-by: Steve Milner <smilner@redhat.com>
2017-08-15bug: container_binary_sync no longer moves upon symlinksSteve Milner
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
2017-08-03cli_image: do not require Docker when using CRI-OGiuseppe Scrivano
Use atomic to copy the CLI binaries to the host. Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2017-05-09Remove vim configuration from Python filesRodolfo Carvalho
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.
2016-11-29update tests and flake8/pylint fixesJason DeTiberus
2016-10-19Switch from "oadm" to "oc adm" and fix bug in binary sync.Devan Goodwin
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.
2016-07-21Copy openshift binaries instead of using wrapper script.Devan Goodwin
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.