Skip to content

Commit 5a30b5f

Browse files
committed
Fix go vet errors
1 parent 35e01e7 commit 5a30b5f

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

controllers/vaultdynamicsecret_controller.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ func (r *VaultDynamicSecretReconciler) Reconcile(ctx context.Context, req ctrl.R
300300
consts.TypeLeaseRenewal,
301301
consts.ReasonSecretLeaseRenewalError,
302302
metav1.ConditionFalse,
303-
err.Error()),
303+
"Could not renew lease, err=%s",
304+
err),
304305
)
305306
}
306307
}
@@ -372,15 +373,18 @@ func (r *VaultDynamicSecretReconciler) Reconcile(ctx context.Context, req ctrl.R
372373
newConditionNow(o,
373374
consts.TypeRolloutRestart,
374375
consts.ReasonRolloutRestartTriggeredFailed,
375-
metav1.ConditionFalse, err.Error()),
376+
metav1.ConditionFalse,
377+
"Rollout restart trigger failed: %s",
378+
err),
376379
)
377380
} else {
378381
conditions = append(
379382
conditions,
380383
newConditionNow(o,
381384
consts.TypeRolloutRestart,
382385
consts.ReasonRolloutRestartTriggered,
383-
metav1.ConditionTrue, "Rollout restart triggered"),
386+
metav1.ConditionTrue,
387+
"Rollout restart triggered"),
384388
)
385389
}
386390
}

controllers/vaultstaticsecret_controller.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,9 @@ func (r *VaultStaticSecretReconciler) Reconcile(ctx context.Context, req ctrl.Re
273273
newConditionNow(o,
274274
consts.TypeRolloutRestart,
275275
consts.ReasonRolloutRestartTriggeredFailed,
276-
metav1.ConditionFalse, err.Error()),
276+
metav1.ConditionFalse,
277+
"Rollout restart trigger failed, err=%s",
278+
err),
277279
)
278280
} else {
279281
conditions = append(

0 commit comments

Comments
 (0)