Skip to content

Commit f9d0f00

Browse files
author
Shawn Hurley
authored
Merge pull request #650 from cpitman/patch-1
Document snake_case conversion by ansible operator
2 parents d4a6b28 + 2ed6968 commit f9d0f00

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)