Skip to content

Commit 2ed6968

Browse files
authored
Document snake_case conversion by ansible operator
1 parent 5c50126 commit 2ed6968

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/ansible/user-guide.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ Defining the spec for an Ansible Operator can be done entirely in Ansible. The
111111
Ansible Operator will simply pass all key value pairs listed in the Custom
112112
Resource spec field along to Ansible as
113113
[variables](https://docs.ansible.com/ansible/2.5/user_guide/playbooks_variables.html#passing-variables-on-the-command-line).
114+
The names of all variables in the spec field are converted to snake_case
115+
by the operator before running ansible. For example, `serviceAccount` in
116+
the spec becomes `service_account` in ansible.
114117
It is recommended that you perform some type validation in Ansible on the
115118
variables to ensure that your application is receiving expected input.
116119

0 commit comments

Comments
 (0)