Skip to content

Commit 38a5ddd

Browse files
committed
Formatting fixes
1 parent 9053674 commit 38a5ddd

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

doc/ansible/user-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ expects this mapping file in a predefined location: `/opt/ansible/watches.yaml`
8383
role/playbook is run, for a given CR.
8484
* **manageStatus** (optional): When true (default), the operator will manage
8585
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.
86+
managed elsewhere, by the specified role/playbook or in a separate controller.
8787

8888
An example Watches file:
8989

pkg/ansible/controller/controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ type Options struct {
4242
Runner runner.Runner
4343
GVK schema.GroupVersionKind
4444
ReconcilePeriod time.Duration
45-
ManageStatus bool
45+
ManageStatus bool
4646
}
4747

4848
// Add - Creates a new ansible operator controller and adds it to the manager
@@ -59,7 +59,7 @@ func Add(mgr manager.Manager, options Options) {
5959
Runner: options.Runner,
6060
EventHandlers: eventHandlers,
6161
ReconcilePeriod: options.ReconcilePeriod,
62-
ManageStatus: options.ManageStatus,
62+
ManageStatus: options.ManageStatus,
6363
}
6464

6565
// Register the GVK with the schema

pkg/ansible/controller/reconcile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type AnsibleOperatorReconciler struct {
5454
Client client.Client
5555
EventHandlers []events.EventHandler
5656
ReconcilePeriod time.Duration
57-
ManageStatus bool
57+
ManageStatus bool
5858
}
5959

6060
// Reconcile - handle the event.

pkg/ansible/controller/reconcile_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func TestReconcile(t *testing.T) {
4646
Name string
4747
GVK schema.GroupVersionKind
4848
ReconcilePeriod time.Duration
49-
ManageStatus bool
49+
ManageStatus bool
5050
Runner runner.Runner
5151
EventHandlers []events.EventHandler
5252
Client client.Client
@@ -75,7 +75,7 @@ func TestReconcile(t *testing.T) {
7575
Name: "completed reconcile",
7676
GVK: gvk,
7777
ReconcilePeriod: 5 * time.Second,
78-
ManageStatus: true,
78+
ManageStatus: true,
7979
Runner: &fake.Runner{
8080
JobEvents: []eventapi.JobEvent{
8181
eventapi.JobEvent{
@@ -136,7 +136,7 @@ func TestReconcile(t *testing.T) {
136136
Name: "Failure message reconcile",
137137
GVK: gvk,
138138
ReconcilePeriod: 5 * time.Second,
139-
ManageStatus: true,
139+
ManageStatus: true,
140140
Runner: &fake.Runner{
141141
JobEvents: []eventapi.JobEvent{
142142
eventapi.JobEvent{
@@ -213,7 +213,7 @@ func TestReconcile(t *testing.T) {
213213
Name: "Finalizer successful reconcile",
214214
GVK: gvk,
215215
ReconcilePeriod: 5 * time.Second,
216-
ManageStatus: true,
216+
ManageStatus: true,
217217
Runner: &fake.Runner{
218218
JobEvents: []eventapi.JobEvent{
219219
eventapi.JobEvent{
@@ -321,7 +321,7 @@ func TestReconcile(t *testing.T) {
321321
Name: "Finalizer successful reconcile",
322322
GVK: gvk,
323323
ReconcilePeriod: 5 * time.Second,
324-
ManageStatus: true,
324+
ManageStatus: true,
325325
Runner: &fake.Runner{
326326
JobEvents: []eventapi.JobEvent{
327327
eventapi.JobEvent{
@@ -421,7 +421,7 @@ func TestReconcile(t *testing.T) {
421421
Name: "no manage status",
422422
GVK: gvk,
423423
ReconcilePeriod: 5 * time.Second,
424-
ManageStatus: false,
424+
ManageStatus: false,
425425
Runner: &fake.Runner{
426426
JobEvents: []eventapi.JobEvent{
427427
eventapi.JobEvent{
@@ -472,7 +472,7 @@ func TestReconcile(t *testing.T) {
472472
Client: tc.Client,
473473
EventHandlers: tc.EventHandlers,
474474
ReconcilePeriod: tc.ReconcilePeriod,
475-
ManageStatus: tc.ManageStatus,
475+
ManageStatus: tc.ManageStatus,
476476
}
477477
result, err := aor.Reconcile(tc.Request)
478478
if err != nil && !tc.ShouldError {

0 commit comments

Comments
 (0)