Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Add types to arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianvf committed Feb 18, 2020
1 parent 75bf82d commit 14bc933
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions plugins/modules/k8s_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
- Authenticate using either a config file, certificates, password or token.
- Supports check mode.
- Analogous to `kubectl logs` or `oc logs`
extends_documentation_fragment:
- community.kubernetes.k8s_auth_options
options:
api_version:
description:
Expand All @@ -39,35 +40,39 @@
aliases:
- api
- version
type: str
kind:
description:
- Use to specify an object model. Use in conjunction with I(api_version), I(name), and I(namespace) to identify a
specific object.
- If using I(label_selector), cannot be overridden
required: no
default: Pod
type: str
namespace:
description:
- Use to specify an object namespace. Use in conjunction with I(api_version), I(kind), and I(name)
to identify a specfic object.
type: str
name:
description:
- Use to specify an object name. Use in conjunction with I(api_version), I(kind) and I(namespace) to identify a
specific object.
- Only one of I(name) or I(label_selector) may be provided
type: str
label_selectors:
description:
- List of label selectors to use to filter results
- Only one of I(name) or I(label_selector) may be provided
type: list
elements: str
container:
description:
- Use to specify the container within a pod to grab the log from.
- If there is only one container, this will default to that container.
- If there is more than one container, this option is required.
required: no
extends_documentation_fragment:
- community.kubernetes.k8s_auth_options
type: str
requirements:
- "python >= 2.7"
Expand Down Expand Up @@ -145,7 +150,7 @@ def argspec(self):
name=dict(),
namespace=dict(),
container=dict(),
label_selectors=dict(type='list', default=[]),
label_selectors=dict(type='list', elements='str', default=[]),
)
)
return args
Expand Down

0 comments on commit 14bc933

Please sign in to comment.