Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #4381 from jarrpa/non-zero-parse | OpenShift Bot | 2017-06-13 | 1 | -28/+16 |
|\ | | | | | Merged by openshift-bot | ||||
| * | lib/base: allow for results parsing on non-zero return code | Jose A. Rivera | 2017-06-08 | 1 | -28/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | On an 'oc get' in particular, the command may return a non-zero error code while still having found valid resources. Thus, we should parse the valid output while still reporting the error. oc_obj.get(), for instance, takes care of determining if the return code should be reset to 0 in some error cases. Also do a bit of logic cleanup and output sanitizing. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com> | ||||
* | | oc_obj: set _delete() rc to 0 if err is 'not found' | Jose A. Rivera | 2017-06-06 | 1 | -1/+6 |
| | | | | | | | | | | | | | | When deleting multiple objects, allow for some resources to already be absent. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com> | ||||
* | | oc_obj: only check 'items' if exists in delete | Jose A. Rivera | 2017-06-06 | 1 | -1/+2 |
|/ | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com> | ||||
* | add support for oc_service for labels, externalIPs | Rich Megginson | 2017-05-30 | 1 | -8/+17 |
| | | | | | | | | | | | | Add support for `labels` and `externalIPs` in Services This also adds support for the `labels` parameter of `oadm registry` and `oadm router` to be a `dict` of values. This also converts `labels` dict values in the router and registry classes into a comma delimited list of `key=value` pairs. The list of `--labels` is sorted for consistency in key pair positioning in the output (and for consistency in testing) - otherwise, the order of the list is not guarantee and has actually been observed to be different from run to run. | ||||
* | lib/base: Allow for more complex template params | Jose A. Rivera | 2017-05-19 | 1 | -1/+1 |
| | | | | | | | This change allows for the specification of JSON objects like lists as parameters to templates. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com> | ||||
* | Fix for yedit custom separators | Matt Woodson | 2017-05-10 | 1 | -1/+1 |
| | |||||
* | Updating oc_obj to use get instead of getattr | ewolinetz | 2017-05-08 | 1 | -1/+1 |
| | |||||
* | Allow oc_ modules to pass unicode results | Russell Teague | 2017-05-03 | 1 | -1/+1 |
| | |||||
* | Merge pull request #3968 from jarrpa/oc_obj-kinds | OpenShift Bot | 2017-04-25 | 1 | -7/+4 |
|\ | | | | | Merged by openshift-bot | ||||
| * | oc_obj: Allow for multiple kinds in delete | Jose A. Rivera | 2017-04-21 | 1 | -7/+4 |
| | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com> | ||||
* | | Removing resource version to remove object conflicts caused by race conditions. | Kenny Woodson | 2017-04-21 | 1 | -0/+7 |
|/ | |||||
* | Fixed a string format and a lint space issue | Kenny Woodson | 2017-04-05 | 1 | -2/+2 |
| | |||||
* | Fixed | Kenny Woodson | 2017-04-05 | 1 | -1/+1 |
| | | | | name and selector to be mutually exclusive | ||||
* | Adding ability to delete by selector. | Kenny Woodson | 2017-04-05 | 1 | -26/+27 |
| | |||||
* | Adding delete with selector support. | Kenny Woodson | 2017-04-05 | 1 | -12/+24 |
| | |||||
* | Removing test coverage for shared code. | Kenny Woodson | 2017-04-04 | 1 | -3/+3 |
| | |||||
* | Fixed a bug in oc_volume. | Kenny Woodson | 2017-03-28 | 1 | -19/+18 |
| | |||||
* | Adding a few more test cases. Fixed a bug when key was empty. Safeguard ↵ | Kenny Woodson | 2017-03-28 | 1 | -63/+107 |
| | | | | against yedit module being passed an empty key | ||||
* | Fixing variable naming for 35 scoping. | Kenny Woodson | 2017-03-16 | 1 | -3/+3 |
| | |||||
* | Removing ordereddict. Replaced with sorted keys. | Kenny Woodson | 2017-03-08 | 1 | -4/+4 |
| | |||||
* | Fix to OpenshiftCLIConfig to support an ordereddict. This was breaking test ↵ | Kenny Woodson | 2017-03-07 | 1 | -1/+2 |
| | | | | cases. | ||||
* | Merge pull request #3527 from joelddiaz/yedit-path-exceptions | Kenny Woodson | 2017-03-03 | 1 | -2/+9 |
|\ | | | | | raise exceptions when walking through object path | ||||
| * | regenerate lib_openshift with yedit exception changes | Joel Diaz | 2017-02-28 | 1 | -2/+9 |
| | | |||||
* | | Modified base debug statements. Fixed oc_secret debug/verbose flag. Added ↵ | Kenny Woodson | 2017-02-28 | 1 | -2/+2 |
|/ | | | | reencrypt for route. | ||||
* | [oc_obj] Move namespace argument to end of command. | Andrew Butcher | 2017-02-27 | 1 | -2/+2 |
| | |||||
* | Merge pull request #3416 from detiber/combinedTest | Scott Dodson | 2017-02-23 | 1 | -5/+34 |
|\ | | | | | lib_openshift - handle cases where oc binary is not in path | ||||
| * | lib_openshift oc file lookup improvements | Jason DeTiberus | 2017-02-21 | 1 | -14/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move binary file search to separate method called from constructor - Use six.PY3 instaed of sys.version_info - Combine additional paths with the paths from the environment - For py3 pass the combined paths to shutil.which - For py2 explictly search for existance of file from combined paths instead of using distutils.spawn.find_executable and falling back - Use 'oc adm' instead of 'oadm' - Fix generate_validation test issue - fix tests for oc binary location - add tests for file lookup | ||||
| * | roles/lib_openshift: Handle /usr/local/bin/oc with sudo | Colin Walters | 2017-02-21 | 1 | -4/+16 |
| | | | | | | | | | | | | | | | | | | | | | | | | The real changes here are in `src/lib/{base,import}.py` remember, the rest is committed to git rather than built for some reason. This is tested on CentOS AH (python2), I haven't yet tested the Python 3 path here. I tried the suggestion in the PR for using Ansible's `module` but AFAICS that would require passing down the `module` variable pretty far down into this code. This implementation seems OK too. Closes: https://github.com/openshift/openshift-ansible/issues/3410 | ||||
* | | fix up ruamel.yaml/pyyaml no-member lint errors | Jason DeTiberus | 2017-02-22 | 1 | -37/+42 |
| | | |||||
* | | Removed unrequired no-members from yedit and generated code | Steve Milner | 2017-02-22 | 1 | -5/+22 |
|/ | |||||
* | String compatibility for python2,3 | Kenny Woodson | 2017-02-17 | 1 | -1/+1 |
| | |||||
* | Pleasing the linting gods. | Kenny Woodson | 2017-02-16 | 1 | -5/+14 |
| | |||||
* | Fixed tests for pyyaml vs ruamel. Added import logic. Fixed safe load. | Kenny Woodson | 2017-02-16 | 1 | -5/+16 |
| | |||||
* | Adding fallback support for pyyaml. | Kenny Woodson | 2017-02-16 | 1 | -13/+30 |
| | |||||
* | Fix cases where child classes override OpenShiftCLI values | Jason DeTiberus | 2017-02-13 | 1 | -4/+1 |
| | |||||
* | Added temporary kubeconfig file. Fixed tests to coincide with tmpfile. | Kenny Woodson | 2017-02-08 | 1 | -2/+2 |
| | |||||
* | Adding code to copy kubeconfig before running oc commands. | Kenny Woodson | 2017-02-08 | 1 | -1/+12 |
| | |||||
* | Changed lib_openshift to use real temporary files. | Thomas Wiest | 2017-02-08 | 1 | -18/+38 |
| | |||||
* | Added oc_serviceaccount_secret to lib_openshift. | Thomas Wiest | 2017-02-06 | 1 | -8/+15 |
| | |||||
* | Adding unit test for oc_service. Added environment fix for non-standard oc ↵ | Kenny Woodson | 2017-01-31 | 1 | -3/+5 |
| | | | | installs. | ||||
* | Added oc_serviceaccount to lib_openshift. | Thomas Wiest | 2017-01-30 | 1 | -8/+15 |
| | |||||
* | Added unit integration tests. Enhanced unit tests. Fixed an issue in ↵ | Kenny Woodson | 2017-01-26 | 1 | -1/+1 |
| | | | | openshift_cmd for namespace. | ||||
* | Adding integration test for oc_scale. | Kenny Woodson | 2017-01-25 | 1 | -3/+2 |
| | |||||
* | Generate the artifacts from fragments. | Tim Bielawa | 2017-01-24 | 1 | -0/+24 |
| | |||||
* | Adding version to lib_openshift | Kenny Woodson | 2017-01-20 | 1 | -11/+65 |
| | |||||
* | Adding oc_obj to the lib_openshift library | Kenny Woodson | 2017-01-18 | 1 | -0/+1390 |