summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge pull request #4381 from jarrpa/non-zero-parseOpenShift Bot2017-06-1328-784/+448
|\ \ | | | | | | Merged by openshift-bot
| * | lib/base: allow for results parsing on non-zero return codeJose A. Rivera2017-06-0828-784/+448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #4380 from jarrpa/oc_obj-fixesOpenShift Bot2017-06-132-4/+16
|\ \ \ | | | | | | | | Merged by openshift-bot
| * | | oc_obj: set _delete() rc to 0 if err is 'not found'Jose A. Rivera2017-06-062-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 deleteJose A. Rivera2017-06-062-2/+4
| |/ / | | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | | oc_secret: allow use of force for secret typeJose A. Rivera2017-06-073-10/+19
|/ / | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | oc_secret: allow for specifying secret typeJose A. Rivera2017-05-318-5/+46
| | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | Merge pull request #4091 from richm/oc_service-labels-externalIPsScott Dodson2017-05-3140-248/+931
|\ \ | | | | | | add support for oc_service for labels, externalIPs
| * | add support for oc_service for labels, externalIPsRich Megginson2017-05-3040-248/+931
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | oc_atomic_container: Workaround for invalid json from atomic commandSteve Milner2017-05-252-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | When no other containers are present and one attempts to list containers via the atomic command with the --json flag an empty string is returned. If a json.loads is used on this value an error is raised. This change adds a workaround to fall back to '[]' when an empty string is returned from the atomic containers command.
* | | oc_atomic_container: Hard code system-package=noSteve Milner2017-05-252-2/+6
|/ /
* | Merge pull request #4244 from jarrpa/oc_process-errOpenShift Bot2017-05-242-2/+2
|\ \ | | | | | | Merged by openshift-bot
| * | oc_process: Better error output on failed template() callJose A. Rivera2017-05-192-2/+2
| | | | | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | | lib/base: Allow for more complex template paramsJose A. Rivera2017-05-1928-28/+28
|/ / | | | | | | | | | | | | This change allows for the specification of JSON objects like lists as parameters to templates. Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | Filter non-strings from the oc_adm_ca_server_cert hostnames parameter.Andrew Butcher2017-05-153-0/+16
| | | | | | | | | | This allows the omit filter to be used in the hostnames parameter list which simplifies conditionally added hostnames.
* | Merge pull request #4030 from liggitt/reserved-namespacesOpenShift Bot2017-05-122-0/+4
|\ \ | | | | | | Merged by openshift-bot
| * | Reserve kubernetes and 'kubernetes-' prefixed namespacesJordan Liggitt2017-04-272-0/+4
| | |
* | | Merge pull request #4156 from mwoodson/fix_yedit_sepsOpenShift Bot2017-05-1127-27/+27
|\ \ \ | | | | | | | | Merged by openshift-bot
| * | | Fix for yedit custom separatorsMatt Woodson2017-05-1027-27/+27
| | | |
* | | | Merge pull request #3967 from jarrpa/oc_volume-docOpenShift Bot2017-05-102-0/+24
|\ \ \ \ | |/ / / |/| | | Merged by openshift-bot
| * | | oc_volume: Add missing parameter documentationJose A. Rivera2017-04-212-0/+24
| | | | | | | | | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | | | Merge pull request #4109 from ewolinetz/fix_ocobj_absentOpenShift Bot2017-05-102-2/+2
|\ \ \ \ | | | | | | | | | | Merged by openshift-bot
| * | | | Updating oc_obj to use get instead of getattrewolinetz2017-05-082-2/+2
| | | | |
* | | | | Remove vim configuration from Python filesRodolfo Carvalho2017-05-091-1/+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.
* | | | Allow oc_ modules to pass unicode resultsRussell Teague2017-05-0328-28/+28
| | | |
* | | | Don't double quote when conditionsScott Dodson2017-05-012-2/+2
| | | |
* | | | Remove jinja template delimeters from when conditionsScott Dodson2017-05-012-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | In ansible 2.3 "[WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ g_glusterfs_hosts is not defined }}"
* | | | Merge pull request #4003 from lhuard1A/fix_registry_ose_3.2OpenShift Bot2017-04-283-33/+51
|\ \ \ \ | |_|/ / |/| | | Merged by openshift-bot
| * | | Fix OpenShift registry deployment on OSE 3.2Lénaïc Huard2017-04-253-33/+51
| | | | | | | | | | | | | | | | Fix #4000
* | | | Merge pull request #3968 from jarrpa/oc_obj-kindsOpenShift Bot2017-04-253-14/+8
|\ \ \ \ | | | | | | | | | | Merged by openshift-bot
| * | | | oc_obj: Allow for multiple kinds in deleteJose A. Rivera2017-04-213-14/+8
| |/ / / | | | | | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>
* | | | Merge pull request #3973 from kwoodson/remove_resource_versionOpenShift Bot2017-04-2428-0/+196
|\ \ \ \ | |/ / / |/| | | Merged by openshift-bot
| * | | Removing resource version to remove object conflicts caused by race conditions.Kenny Woodson2017-04-2128-0/+196
| | | |
* | | | Merge pull request #3944 from pilou-/add_missing_mock_for_oc_binaryOpenShift Bot2017-04-213-10/+35
|\ \ \ \ | |/ / / |/| | | Merged by openshift-bot
| * | | Use return_value when value is constantPierre-Louis Bonicoli2017-04-181-8/+2
| | | | | | | | | | | | | | | | Thanks to Tim Bielawa for pointing it out.
| * | | Add missing mock for locate_oc_binary methodPierre-Louis Bonicoli2017-04-183-6/+37
| |/ / | | | | | | | | | | | | When locate_oc_binary has not been mocked, the test suite fails when oc executable is available.
* | | Adding module calls instead of command for idempotency.Kenny Woodson2017-04-195-12/+20
|/ /
* | Fixing a compatibility issue with python 2.7 to 3.5 when reading from ↵Kenny Woodson2017-04-102-2/+2
| | | | | | | | subprocess.
* | Fixed a bug when oc command fails.Kenny Woodson2017-04-062-2/+2
| |
* | Merge pull request #3840 from kwoodson/oc_obj_delete_selectorScott Dodson2017-04-0635-520/+857
|\ \ | | | | | | Adding ability to delete by selector. Also variable name cleanup and update to use .format.
| * | Fixed a string format and a lint space issueKenny Woodson2017-04-053-4/+4
| | |
| * | FixedKenny Woodson2017-04-054-4/+4
| | | | | | | | | | | | name and selector to be mutually exclusive
| * | Adding ability to delete by selector.Kenny Woodson2017-04-0533-500/+813
| | |
| * | Adding delete with selector support.Kenny Woodson2017-04-052-24/+48
| | |
* | | Merge pull request #3821 from kwoodson/default_router_certOpenShift Bot2017-04-052-0/+6
|\ \ \ | |/ / |/| | Merged by openshift-bot
| * | Adding signed router cert and fixing server_cert bug.Kenny Woodson2017-04-042-0/+6
| | |
* | | Merge pull request #3850 from kwoodson/skip_generated_tcOpenShift Bot2017-04-0528-81/+90
|\ \ \ | | | | | | | | Merged by openshift-bot
| * | | Removing test coverage for shared code.Kenny Woodson2017-04-0428-81/+90
| |/ /
* | | Merge pull request #3841 from jarrpa/oc_label-get-fixOpenShift Bot2017-04-042-4/+4
|\ \ \ | | | | | | | | Merged by openshift-bot
| * | | oc_label: handle case where _get() returns no resultsJose A. Rivera2017-04-032-4/+4
| | | | | | | | | | | | | | | | Signed-off-by: Jose A. Rivera <jarrpa@redhat.com>