Update k8s.py (#218)

docs.ansible.com is managed by Red Hat and I found that the example to create the OCP/OKD project was missing in this hence I have added the below snippet:

    - name: Create an OCP project
      community.okd.k8s:
        state: present
        resource_definition:
          apiVersion: project.openshift.io/v1
          kind: Project
          metadata:
            name: testing

Please add this to the man pages also.
This commit is contained in:
Bharat Babbar
2024-01-18 20:52:39 +05:30
committed by GitHub
parent 31c2df50ed
commit fcc19da20a

View File

@@ -145,6 +145,15 @@ requirements:
"""
EXAMPLES = r"""
- name: Create an OCP project
community.okd.k8s:
state: present
resource_definition:
apiVersion: project.openshift.io/v1
kind: Project
metadata:
name: testing
- name: Create a k8s namespace
community.okd.k8s:
name: testing