File tree Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Expand file tree Collapse file tree 3 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,9 @@ expects this mapping file in a predefined location: `/opt/ansible/watches.yaml`
81
81
field is mutually exclusive with the "role" field.
82
82
* ** reconcilePeriod** (optional): The reconciliation interval, how often the
83
83
role/playbook is run, for a given CR.
84
- * ** manageStatus** (optional): Specifies who is managing the status for the CR.
85
- Set to ` false ` when you want the role/playbook to be solely responsible for
86
- the CR's status .
84
+ * ** manageStatus** (optional): When true (default), the operator will manage
85
+ the status of the CR generically. Set to false, the status of the CR is
86
+ managed elsewhere, the specified role/playbook or in a separate controller .
87
87
88
88
An example Watches file:
89
89
Original file line number Diff line number Diff line change @@ -153,6 +153,19 @@ func TestNewFromWatches(t *testing.T) {
153
153
Path : validTemplate .ValidPlaybook ,
154
154
reconcilePeriod : & zeroSeconds ,
155
155
},
156
+ schema.GroupVersionKind {
157
+ Version : "v1alpha1" ,
158
+ Group : "app.example.com" ,
159
+ Kind : "DefaultStatus" ,
160
+ }: runner {
161
+ GVK : schema.GroupVersionKind {
162
+ Version : "v1alpha1" ,
163
+ Group : "app.example.com" ,
164
+ Kind : "DefaultStatus" ,
165
+ },
166
+ Path : validTemplate .ValidPlaybook ,
167
+ manageStatus : true ,
168
+ },
156
169
schema.GroupVersionKind {
157
170
Version : "v1alpha1" ,
158
171
Group : "app.example.com" ,
Original file line number Diff line number Diff line change 18
18
kind: NoReconcile
19
19
playbook: {{ .ValidPlaybook }}
20
20
reconcilePeriod: 0s
21
+ - version: v1alpha1
22
+ group: app.example.com
23
+ kind: DefaultStatus
24
+ playbook: {{ .ValidPlaybook }}
21
25
- version: v1alpha1
22
26
group: app.example.com
23
27
kind: DisableStatus
You can’t perform that action at this time.
0 commit comments