mirror of
https://github.com/openshift/community.okd.git
synced 2026-03-26 19:03:14 +00:00
* Issue #1: Initial effort to lift some content out of the Kubernetes collection. * Issue #1: Disable integration tests for now, as they're not relevant.
26 lines
614 B
YAML
26 lines
614 B
YAML
---
|
|
# TODO: Not available in ansible-base
|
|
# - python_requirements_info:
|
|
# dependencies:
|
|
# - openshift
|
|
# - kubernetes
|
|
# - kubernetes-validate
|
|
|
|
- community.kubernetes.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'"
|