summaryrefslogtreecommitdiffstats
path: root/roles/lib_openshift/src
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2017-01-31 09:36:23 -0500
committerKenny Woodson <kwoodson@redhat.com>2017-02-01 15:08:32 -0500
commit4806fe365e11a9a0266c06d052537836397a26c6 (patch)
tree60cf160f3c133042007fe5c03313e459414422b4 /roles/lib_openshift/src
parentb5de5357042c146a930097d52c3920808af89c42 (diff)
downloadopenshift-4806fe365e11a9a0266c06d052537836397a26c6.tar.gz
openshift-4806fe365e11a9a0266c06d052537836397a26c6.tar.bz2
openshift-4806fe365e11a9a0266c06d052537836397a26c6.tar.xz
openshift-4806fe365e11a9a0266c06d052537836397a26c6.zip
Fixing doc and generating new label with updated base.
Diffstat (limited to 'roles/lib_openshift/src')
-rw-r--r--roles/lib_openshift/src/ansible/oc_label.py2
-rw-r--r--roles/lib_openshift/src/doc/label9
2 files changed, 6 insertions, 5 deletions
diff --git a/roles/lib_openshift/src/ansible/oc_label.py b/roles/lib_openshift/src/ansible/oc_label.py
index 53632678b..149b965d8 100644
--- a/roles/lib_openshift/src/ansible/oc_label.py
+++ b/roles/lib_openshift/src/ansible/oc_label.py
@@ -11,7 +11,7 @@ def main():
choices=['present', 'absent', 'list', 'add']),
debug=dict(default=False, type='bool'),
kind=dict(default=None, type='str', required=True,
- choices=['node', 'pod']),
+ choices=['node', 'pod', 'namespace']),
name=dict(default=None, type='str'),
namespace=dict(default=None, type='str'),
labels=dict(default=None, type='list'),
diff --git a/roles/lib_openshift/src/doc/label b/roles/lib_openshift/src/doc/label
index 8122bd4b0..1274d58c1 100644
--- a/roles/lib_openshift/src/doc/label
+++ b/roles/lib_openshift/src/doc/label
@@ -4,7 +4,7 @@
DOCUMENTATION = '''
---
module: oc_label
-short_description: Create, modify, and idempotently manage openshift object labels.
+short_description: Create, modify, and idempotently manage openshift labels.
description:
- Modify openshift labels programmatically.
options:
@@ -30,21 +30,22 @@ options:
kind:
description:
- The kind of object that can be managed.
- required: false
+ required: True
default: None
choices:
- node
- pod
+ - namespace
aliases: []
labels:
description:
- - The labels to add to the resource.
+ - A list of labels to for the resource.
required: false
default: None
aliases: []
selector:
description:
- - The selector to apply to the query
+ - The selector to apply to the resource query
required: false
default: None
aliases: []