File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -240,7 +240,10 @@ the below section for Ansible Operator specifc annotations.
240
240
# ### Ansible Operator annotations
241
241
This is the list of CR annotations which will modify the behavior of the operator :
242
242
243
- **ansible.operator-sdk/reconcile-period**: Used to specify the reconciliation interval for the CR.
243
+ **ansible.operator-sdk/reconcile-period**: Used to specify the reconciliation
244
+ interval for the CR. This value is parsed using the standard Golang package
245
+ [time][time_pkg]. Specifically [ParseDuration][time_parse_duration] is used
246
+ which will use the default of `s` suffix giving the value in seconds.
244
247
245
248
Example :
246
249
` ` `
@@ -249,7 +252,7 @@ kind: "Foo"
249
252
metadata:
250
253
name: "example"
251
254
annotations:
252
- ansible.operator-sdk/reconcile-period: 30s
255
+ ansible.operator-sdk/reconcile-period: " 30s"
253
256
` ` `
254
257
255
258
# ## Testing an Ansible operator locally
@@ -423,3 +426,5 @@ The structure is:
423
426
[k8s_ansible_module]:https://docs.ansible.com/ansible/2.6/modules/k8s_module.html
424
427
[openshift_restclient_python]:https://github.com/openshift/openshift-restclient-python
425
428
[ansible_operator_user_guide]:../user-guide.md
429
+ [time_pkg]:https://golang.org/pkg/time/
430
+ [time_parse_duration]:https://golang.org/pkg/time/#ParseDuration
You can’t perform that action at this time.
0 commit comments