446919de6f
* Add apply to k8s module Use apply method for updating k8s resources. * Improve apply documentation * k8s: Make apply and merge_type mutually exclusive
23 lines
583 B
YAML
23 lines
583 B
YAML
- python_requirements_info:
|
|
dependencies:
|
|
- openshift
|
|
- kubernetes
|
|
- kubernetes-validate
|
|
|
|
- k8s:
|
|
definition:
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: hello
|
|
namespace: default
|
|
validate:
|
|
fail_on_error: yes
|
|
ignore_errors: yes
|
|
register: k8s_no_validate
|
|
|
|
- name: assert that k8s_no_validate fails gracefully
|
|
assert:
|
|
that:
|
|
- k8s_no_validate is failed
|
|
- "k8s_no_validate.msg == 'kubernetes-validate python library is required to validate resources'"
|