mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-14 21:19:12 -07:00
DOCS: Update "connections" data type (#55290)
The k8s plugin expects the "connections" field to be a list - current docs examples trigger: [WARNING]: * Failed to parse {...}/inventory.yml with k8s plugin: Expecting connections to be a list. Updated examples for `host` and `namespaces` to reflect this.
This commit is contained in:
parent
f8c47262c4
commit
e90df4b566
1 changed files with 2 additions and 2 deletions
|
@ -95,14 +95,14 @@ EXAMPLES = '''
|
||||||
# Authenticate with token, and return all pods and services for all namespaces
|
# Authenticate with token, and return all pods and services for all namespaces
|
||||||
plugin: k8s
|
plugin: k8s
|
||||||
connections:
|
connections:
|
||||||
host: https://192.168.64.4:8443
|
- host: https://192.168.64.4:8443
|
||||||
token: xxxxxxxxxxxxxxxx
|
token: xxxxxxxxxxxxxxxx
|
||||||
validate_certs: false
|
validate_certs: false
|
||||||
|
|
||||||
# Use default config (~/.kube/config) file and active context, and return objects for a specific namespace
|
# Use default config (~/.kube/config) file and active context, and return objects for a specific namespace
|
||||||
plugin: k8s
|
plugin: k8s
|
||||||
connections:
|
connections:
|
||||||
namespaces:
|
- namespaces:
|
||||||
- testing
|
- testing
|
||||||
|
|
||||||
# Use a custom config file, and a specific context.
|
# Use a custom config file, and a specific context.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue