summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_route.py
Commit message (Collapse)AuthorAgeFilesLines
* Adding ability to yedit json files.Kenny Woodson2018-02-131-6/+18
|
* Fixing file write issue.Kenny Woodson2018-01-311-1/+1
|
* Merge pull request #5314 from fabianvf/asb-config-updateOpenShift Merge Robot2017-10-041-0/+12
|\ | | | | | | | | | | | | | | | | Automatic merge from submit-queue. Update broker configuration to track current broker Broker configuration has been drifting from this installer, updated configuration and deployment methods a bit to make it work with the new upstream broker. Note: This will not work well when deploying openshift-enterprise, to deploy openshift-enterprise you will need to use an older checkout of openshift-ansible, or specify the upstream broker + catalog and use a registry other than the RHCC. This is because the configuration for the current upstream broker is incompatible with the downstream broker.
| * Update ansible-service-broker config to track latest brokerFabian von Feilitzsch2017-10-021-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | bring ansible service broker up to date with bearer token changes etcd -> 0.0.0.0 add auth information to broker resource in catalog add sandbox role to config simplify defaults add labels to oc_route use new oc_route label field Fix parameter ordering add port back Fix secret syntax
* | lib/base: Allow for empty option valueJose A. Rivera2017-09-291-1/+1
|/ | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* Returning actual results of yedit query. Empty list was returning empty dict.Kenny Woodson2017-09-201-1/+1
|
* Merge pull request #4887 from zgalor/fix_oc_route_certificate_validationScott Dodson2017-08-291-5/+2
|\ | | | | Only validate certificates that are passed to oc_route
| * Only validate certificates that are passed to oc_routeZohar Galor2017-08-011-5/+2
| | | | | | | | | | | | In 3.6 destination ca certifate is not mandatory for tls_termination==reencrypt. Instead of validating that the certificate/key was passed, only validate the content or correct path, before sending request to API.
* | add dnf support to roles/openshift_health_checker/library/aos_version.pyAdam Miller2017-08-161-5/+4
|/ | | | Signed-off-by: Adam Miller <maxamillion@fedoraproject.org>
* lib/base: allow for results parsing on non-zero return codeJose A. Rivera2017-06-081-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>
* add support for oc_service for labels, externalIPsRich Megginson2017-05-301-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 paramsJose A. Rivera2017-05-191-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 separatorsMatt Woodson2017-05-101-1/+1
|
* Allow oc_ modules to pass unicode resultsRussell Teague2017-05-031-1/+1
|
* Removing resource version to remove object conflicts caused by race conditions.Kenny Woodson2017-04-211-0/+7
|
* Adding ability to delete by selector.Kenny Woodson2017-04-051-17/+21
|
* Removing test coverage for shared code.Kenny Woodson2017-04-041-3/+3
|
* Fixed a bug in oc_volume.Kenny Woodson2017-03-281-19/+18
|
* Adding a few more test cases. Fixed a bug when key was empty. Safeguard ↵Kenny Woodson2017-03-281-63/+107
| | | | against yedit module being passed an empty key
* Fixing variable naming for 35 scoping.Kenny Woodson2017-03-161-3/+3
|
* Removing ordereddict. Replaced with sorted keys.Kenny Woodson2017-03-081-4/+4
|
* Fix to OpenshiftCLIConfig to support an ordereddict. This was breaking test ↵Kenny Woodson2017-03-071-1/+2
| | | | cases.
* Merge pull request #3527 from joelddiaz/yedit-path-exceptionsKenny Woodson2017-03-031-2/+9
|\ | | | | raise exceptions when walking through object path
| * regenerate lib_openshift with yedit exception changesJoel Diaz2017-02-281-2/+9
| |
* | Updating delete/recreate with replace --force.Kenny Woodson2017-02-281-8/+4
| |
* | Modified base debug statements. Fixed oc_secret debug/verbose flag. Added ↵Kenny Woodson2017-02-281-3/+3
| | | | | | | | reencrypt for route.
* | Adding support for a route with certs and reencrypt.Kenny Woodson2017-02-281-1/+7
|/
* [oc_obj] Move namespace argument to end of command.Andrew Butcher2017-02-271-2/+2
|
* Merge pull request #3416 from detiber/combinedTestScott Dodson2017-02-231-5/+34
|\ | | | | lib_openshift - handle cases where oc binary is not in path
| * lib_openshift oc file lookup improvementsJason DeTiberus2017-02-211-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 sudoColin Walters2017-02-211-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 errorsJason DeTiberus2017-02-221-36/+42
| |
* | Removed unrequired no-members from yedit and generated codeSteve Milner2017-02-221-5/+22
|/
* Fixing a bug by removing default debugKenny Woodson2017-02-171-1/+1
|
* String compatibility for python2,3Kenny Woodson2017-02-171-1/+1
|
* Pleasing the linting gods.Kenny Woodson2017-02-161-5/+14
|
* Fixed tests for pyyaml vs ruamel. Added import logic. Fixed safe load.Kenny Woodson2017-02-161-5/+16
|
* Adding fallback support for pyyaml.Kenny Woodson2017-02-161-13/+30
|
* Fix cases where child classes override OpenShiftCLI valuesJason DeTiberus2017-02-131-2/+1
|
* Merge pull request #3283 from kwoodson/router_portKenny Woodson2017-02-081-44/+68
|\ | | | | Adding test cases. Adding support for specifying port on route.
| * Adding port support for route.Kenny Woodson2017-02-081-44/+68
| |
* | Added temporary kubeconfig file. Fixed tests to coincide with tmpfile.Kenny Woodson2017-02-081-2/+2
| |
* | Adding code to copy kubeconfig before running oc commands.Kenny Woodson2017-02-081-1/+12
|/
* Changed lib_openshift to use real temporary files.Thomas Wiest2017-02-081-17/+37
|
* Added oc_serviceaccount_secret to lib_openshift.Thomas Wiest2017-02-061-8/+15
|
* Adding unit test for oc_service. Added environment fix for non-standard oc ↵Kenny Woodson2017-01-311-3/+5
| | | | installs.
* Added oc_serviceaccount to lib_openshift.Thomas Wiest2017-01-301-8/+15
|
* Added unit integration tests. Enhanced unit tests. Fixed an issue in ↵Kenny Woodson2017-01-261-1/+1
| | | | openshift_cmd for namespace.
* Adding integration test for oc_scale.Kenny Woodson2017-01-251-3/+2
|
* Generate the artifacts from fragments.Tim Bielawa2017-01-241-0/+28
|