summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/library/oc_adm_router.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 #6277 from fabianvf/asb-idempotence-cpickScott Dodson2017-12-011-0/+5
|\ | | | | Bug 1512793- Fix idempotence issues in ASB deploy
| * Bug 1512793- Fix idempotence issues in ASB deployFabian von Feilitzsch2017-11-281-0/+5
| | | | | | | | | | | | | | - Add support for annotations in oc_service - Use oc_service instead of oc_obj - Use oc_pvc instead of oc_obj - Work around lack of idempotency for oc_obj DeploymentConfig
* | Fix no_log warnings for custom moduleMichael Gugino2017-11-281-3/+3
|/ | | | | We need to set no_log for password and private_key variables.
* Merge pull request #5314 from fabianvf/asb-config-updateOpenShift Merge Robot2017-10-041-1/+5
|\ | | | | | | | | | | | | | | | | 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-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* 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>
* oc_secret: allow for specifying secret typeJose A. Rivera2017-05-311-1/+4
| | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* add support for oc_service for labels, externalIPsRich Megginson2017-05-301-13/+77
| | | | | | | | | | | | 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
|
* FixedKenny Woodson2017-04-051-1/+1
| | | | name and selector to be mutually exclusive
* 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-5/+5
|
* 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
| |
* | Fixed failures on create when objects exist.Kenny Woodson2017-02-281-33/+56
| |
* | Modified base debug statements. Fixed oc_secret debug/verbose flag. Added ↵Kenny Woodson2017-02-281-2/+7
|/ | | | reencrypt for route.
* [oc_obj] Move namespace argument to end of command.Andrew Butcher2017-02-271-2/+2
|
* Rebased.Kenny Woodson2017-02-241-1/+1
|
* Adding get_env_var to deploymentconfig.Kenny Woodson2017-02-241-12/+12
|
* Fixed default variables. Added a fix to generated secret in env var.Kenny Woodson2017-02-241-0/+12
|
* 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-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | Updated for pylint. Fixed create doc.Kenny Woodson2017-02-221-4/+12
| |
* | Attempt to handle router preparation errors.Kenny Woodson2017-02-221-3/+8
| |
* | Merge pull request #3429 from ashcrow/remove-no-memberScott Dodson2017-02-221-35/+56
|\ \ | | | | | | Removed unrequired no-members
| * | Removed unrequired no-members from yedit and generated codeSteve Milner2017-02-221-35/+56
| |/
* | Added required_together. Added two minor bug fixes for when data is not passed.Kenny Woodson2017-02-221-4/+8
| |
* | if no key, cert, cacert, or default_cert is passed then do not pass to ocKenny Woodson2017-02-211-2/+11
|/
* Removed oadm_ references in doc.Kenny Woodson2017-02-211-1/+1
|
* Fixing docs. Fixed default_cert suggestion.Kenny Woodson2017-02-201-28/+60
|
* Renamed modules, fixed docs, renamed variables, and cleaned up logic.Kenny Woodson2017-02-201-86/+104
|
* Renaming registry and router roles to oc_adm_Kenny Woodson2017-02-201-0/+2905