Skip to content

Commit 385e2b2

Browse files
authored
Merge pull request #11060 from openshift-cherrypick-robot/cherry-pick-11030-to-devel-40
[devel-40] Fix documentation for oc - modules
2 parents b207564 + a97aa89 commit 385e2b2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+154
-106
lines changed

roles/lib_openshift/library/oc_adm_csr.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,13 @@
6363
options:
6464
state:
6565
description:
66-
- approve|deny|list Approve, deny, and list are the only supported states for certificates
66+
- State controls the action that will be taken with resource
67+
- approve - create the certificate
68+
- deny - remove the certificate
69+
- list - return the current representation of a certificate
6770
required: false
68-
default: present
69-
choices:
70-
- present
71+
default: approve
72+
choices: ["approve", "deny", "list"]
7173
aliases: []
7274
kubeconfig:
7375
description:

roles/lib_openshift/library/oc_adm_policy_group.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
description:
6262
- Manage openshift policy for groups.
6363
options:
64+
state:
65+
description:
66+
- State controls the action that will be taken with resource
67+
required: true
68+
default: present
69+
choices: ["present", "absent"]
70+
aliases: []
6471
kubeconfig:
6572
description:
6673
- The path for the kubeconfig file to use for authentication
@@ -104,13 +111,6 @@
104111
required: true
105112
default: None
106113
aliases: []
107-
state:
108-
description:
109-
- Desired state of the policy
110-
required: true
111-
default: present
112-
choices: ["present", "absent"]
113-
aliases: []
114114
author:
115115
- "Kenny Woodson <[email protected]>"
116116
extends_documentation_fragment: []

roles/lib_openshift/library/oc_adm_policy_user.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@
6161
description:
6262
- Manage openshift policy for users.
6363
options:
64+
state:
65+
description:
66+
- State controls the action that will be taken with resource
67+
required: true
68+
default: present
69+
choices: ["present", "absent"]
70+
aliases: []
6471
kubeconfig:
6572
description:
6673
- The path for the kubeconfig file to use for authentication
@@ -110,13 +117,6 @@
110117
required: true
111118
default: None
112119
aliases: []
113-
state:
114-
description:
115-
- Desired state of the policy
116-
required: true
117-
default: present
118-
choices: ["present", "absent"]
119-
aliases: []
120120
author:
121121
- "Kenny Woodson <[email protected]>"
122122
extends_documentation_fragment: []

roles/lib_openshift/library/oc_adm_registry.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,13 @@
6363
options:
6464
state:
6565
description:
66-
- The desired action when managing openshift registry
66+
- State controls the action that will be taken with resource
6767
- present - update or create the registry
6868
- absent - tear down the registry service and deploymentconfig
6969
- list - returns the current representiation of a registry
7070
required: false
7171
default: False
72+
choices: ["present", 'absent', 'list']
7273
aliases: []
7374
kubeconfig:
7475
description:

roles/lib_openshift/library/oc_adm_router.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,13 @@
6363
options:
6464
state:
6565
description:
66-
- Whether to create or delete the router
66+
- State controls the action that will be taken with resource
6767
- present - create the router
6868
- absent - remove the router
6969
- list - return the current representation of a router
7070
required: false
7171
default: present
72-
choices:
73-
- present
74-
- absent
72+
choices: ["present", "absent", "list"]
7573
aliases: []
7674
kubeconfig:
7775
description:

roles/lib_openshift/library/oc_clusterrole.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
options:
6464
state:
6565
description:
66-
- Supported states, present, absent, list
66+
- State controls the action that will be taken with resource
6767
- present - will ensure object is created or updated to the value specified
6868
- list - will return a clusterrole
6969
- absent - will remove a clusterrole

roles/lib_openshift/library/oc_configmap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
options:
6464
state:
6565
description:
66-
- Supported states, present, absent, list
66+
- State controls the action that will be taken with resource
6767
- present - will ensure object is created or updated to the value specified
6868
- list - will return a configmap
6969
- absent - will remove the configmap

roles/lib_openshift/library/oc_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
options:
6464
state:
6565
description:
66-
- Supported states, present, absent, list
66+
- State controls the action that will be taken with resource
6767
- present - will ensure object is created or updated to the value specified
6868
- list - will return a list of environment variables
6969
- absent - will remove the environment varibale from the object

roles/lib_openshift/library/oc_group.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
options:
6464
state:
6565
description:
66-
- Supported states, present, absent, list
66+
- State controls the action that will be taken with resource
6767
- present - will ensure object is created or updated to the value specified
6868
- list - will return a group
6969
- absent - will remove the group

roles/lib_openshift/library/oc_image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
DOCUMENTATION = '''
5858
---
5959
module: oc_image
60-
short_description: Create, modify, and idempotently manage openshift labels.
60+
short_description: Create, modify, and idempotently manage openshift images.
6161
description:
62-
- Modify openshift labels programmatically.
62+
- Modify openshift images programmatically.
6363
options:
6464
state:
6565
description:
6666
- State controls the action that will be taken with resource
67-
- 'present' will create. Does _not_ support update.
68-
- 'list' will read the labels
67+
- present - will create the image. Does _not_ support update.
68+
- list - will read the images
6969
default: present
7070
choices: ["present", "list"]
7171
aliases: []

roles/lib_openshift/library/oc_label.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
state:
6565
description:
6666
- State controls the action that will be taken with resource
67-
- 'present' will create or update and object to the desired state
68-
- 'absent' will ensure certain labels are removed
69-
- 'list' will read the labels
70-
- 'add' will insert labels to the already existing labels
67+
- present - will create or update and object to the desired state
68+
- absent - will ensure certain labels are removed
69+
- list - will read the labels
70+
- add - will insert labels to the already existing labels
7171
default: present
7272
choices: ["present", "absent", "list", "add"]
7373
aliases: []

roles/lib_openshift/library/oc_obj.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@
6363
options:
6464
state:
6565
description:
66+
- State controls the action that will be taken with resource
6667
- Currently present is only supported state.
6768
required: true
6869
default: present
69-
choices: ["present", "absent", "list"]
70+
choices: ["present"]
7071
aliases: []
7172
kubeconfig:
7273
description:

roles/lib_openshift/library/oc_process.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@
6464
state:
6565
description:
6666
- State has a few different meanings when it comes to process.
67-
- state: present - This state runs an `oc process <template>`. When used in
67+
- present - This state runs an `oc process <template>`. When used in
6868
- conjunction with 'create: True' the process will be piped to | oc create -f
69-
- state: absent - will remove a template
70-
- state: list - will perform an `oc get template <template_name>`
69+
- absent - will remove a template
70+
- list - will perform an `oc get template <template_name>`
7171
default: present
7272
choices: ["present", "absent", "list"]
7373
aliases: []

roles/lib_openshift/library/oc_project.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- If present, the project will be created if it doesn't exist or update if different. If absent, the project will be removed if present. If list, information about the project will be gathered and returned as part of the Ansible call results.
66+
- State controls the action that will be taken with resource
67+
- present - the project will be created if it doesn't exist or update if different.
68+
- absent - the project will be removed if present.
69+
- list - information about the project will be gathered and returned as part of the Ansible call results.
6770
required: false
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_pvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
options:
6464
state:
6565
description:
66-
- Supported states, present, absent, list
66+
- State controls the action that will be taken with resource
6767
- present - will ensure object is created or updated to the value specified
6868
- list - will return a pvc
6969
- absent - will remove a pvc

roles/lib_openshift/library/oc_route.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- State represents whether to create, modify, delete, or list
66+
- State controls the action that will be taken with resource
67+
- present - create the route
68+
- absent - remove the route
69+
- list - returns the current representiation of the route
6770
required: true
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_secret.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- If present, the secret will be created if it doesn't exist or updated if different. If absent, the secret will be removed if present. If list, information about the secret will be gathered and returned as part of the Ansible call results.
66+
- State controls the action that will be taken with resource
67+
- present - the secret will be created if it doesn't exist or updated if different.
68+
- absent - the secret will be removed if present.
69+
- list - information about the secret will be gathered and returned as part of the Ansible call results.
6770
required: false
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_service.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- State represents whether to create, modify, delete, or list
66+
- State controls the action that will be taken with resource
67+
- present - create the service
68+
- absent - remove the service
69+
- list - return the current representation of a service
6770
required: False
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_serviceaccount.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- If present, the service account will be created if it doesn't exist or updated if different. If absent, the service account will be removed if present. If list, information about the service account will be gathered and returned as part of the Ansible call results.
66+
- State controls the action that will be taken with resource
67+
- present - the service account will be created if it doesn't exist or updated if different.
68+
- absent - the service account will be removed if present
69+
- list - information about the service account will be gathered and returned as part of the Ansible call results.
6770
required: false
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_serviceaccount_secret.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- If present, the service account will be linked with the secret if it is not already. If absent, the service account will be unlinked from the secret if it is already linked. If list, information about the service account secrets will be gathered and returned as part of the Ansible call results.
66+
- State controls the action that will be taken with resource
67+
- present - the service account will be linked with the secret if it is not already.
68+
- absent - the service account will be unlinked from the secret if it is already linked.
69+
- list - gather and return information about the service account secrets.
6770
required: false
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_storageclass.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@
6363
options:
6464
state:
6565
description:
66-
- State represents whether to create, modify, delete, or list
66+
- State controls the action that will be taken with resource
67+
- present - create the storageclass
68+
- absent - remove the storageclass
69+
- list - return the current representation of a storageclass
6770
required: False
6871
default: present
6972
choices: ["present", "absent", "list"]

roles/lib_openshift/library/oc_user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
state:
6565
description:
6666
- State controls the action that will be taken with resource
67-
- 'present' will create or update a user to the desired state
68-
- 'absent' will ensure user is removed
69-
- 'list' will read and return a list of users
67+
- present - will create or update a user to the desired state
68+
- absent - will ensure user is removed
69+
- list - will read and return a list of users
7070
default: present
7171
choices: ["present", "absent", "list"]
7272
aliases: []

roles/lib_openshift/library/oc_version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
options:
6464
state:
6565
description:
66+
- State controls the action that will be taken with resource
6667
- Currently list is only supported state.
6768
required: true
6869
default: list

roles/lib_openshift/library/oc_volume.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@
6464
state:
6565
description:
6666
- State controls the action that will be taken with resource
67-
- 'present' will create or update and object to the desired state
68-
- 'absent' will ensure volumes are removed
69-
- 'list' will read the volumes
67+
- present - create the volume
68+
- absent - remove the volume
69+
- list - return the current representation of a volume
7070
default: present
7171
choices: ["present", "absent", "list"]
7272
aliases: []

roles/lib_openshift/src/doc/clusterrole

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
options:
1111
state:
1212
description:
13-
- Supported states, present, absent, list
13+
- State controls the action that will be taken with resource
1414
- present - will ensure object is created or updated to the value specified
1515
- list - will return a clusterrole
1616
- absent - will remove a clusterrole

roles/lib_openshift/src/doc/configmap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
options:
1111
state:
1212
description:
13-
- Supported states, present, absent, list
13+
- State controls the action that will be taken with resource
1414
- present - will ensure object is created or updated to the value specified
1515
- list - will return a configmap
1616
- absent - will remove the configmap

roles/lib_openshift/src/doc/csr

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ description:
1010
options:
1111
state:
1212
description:
13-
- approve|deny|list Approve, deny, and list are the only supported states for certificates
13+
- State controls the action that will be taken with resource
14+
- approve - create the certificate
15+
- deny - remove the certificate
16+
- list - return the current representation of a certificate
1417
required: false
15-
default: present
16-
choices:
17-
- present
18+
default: approve
19+
choices: ["approve", "deny", "list"]
1820
aliases: []
1921
kubeconfig:
2022
description:

roles/lib_openshift/src/doc/env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
options:
1111
state:
1212
description:
13-
- Supported states, present, absent, list
13+
- State controls the action that will be taken with resource
1414
- present - will ensure object is created or updated to the value specified
1515
- list - will return a list of environment variables
1616
- absent - will remove the environment varibale from the object

roles/lib_openshift/src/doc/group

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description:
1010
options:
1111
state:
1212
description:
13-
- Supported states, present, absent, list
13+
- State controls the action that will be taken with resource
1414
- present - will ensure object is created or updated to the value specified
1515
- list - will return a group
1616
- absent - will remove the group

0 commit comments

Comments
 (0)