Skip to content

Commit d61a01d

Browse files
committed
Update comments for backup finalizer changes
1 parent 776e628 commit d61a01d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

controllers/backup_controller.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,8 @@ func (r *FoundationDBBackupReconciler) updateOrApplySpec(
249249
ctx context.Context,
250250
backup *fdbv1beta2.FoundationDBBackup,
251251
) error {
252-
// For now just make use of the update method,during testing I observed some issues with the patch method.
252+
// TODO(johscheuer): Implement the server-side apply feature, during testing we observed issues with the server-side
253+
// apply.
253254
return r.Update(ctx, backup)
254255
}
255256

controllers/backup_controller_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,7 @@ var _ = Describe("backup_controller", func() {
232232
When("pausing a backup", func() {
233233
BeforeEach(func() {
234234
backup.Spec.BackupState = fdbv1beta2.BackupStatePaused
235-
err = k8sClient.Update(context.TODO(), backup)
236-
Expect(err).NotTo(HaveOccurred())
235+
Expect(k8sClient.Update(context.TODO(), backup)).NotTo(HaveOccurred())
237236
})
238237

239238
It("should pause the backup", func() {

docs/manual/backup.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ This can be changed by setting the `spec.deletionPolicy`, valid options are:
135135

136136
When the `stop` or the `cleanup` deletion policy is set the operator will add the `foundationdb.org/fdb-kubernetes-operator` finalizer.
137137
It is not recommended to remove this finalizer manually, as this could lead to an incomplete removal of data.
138-
In the current implementation the delete step is implemented in the operator, this step might block one fo routine for a longer duration (up to 10 minutes before the reconciliation is retried).
138+
In the current implementation the delete step is implemented in the operator, this step might block for a longer duration (up to 10 minutes before the reconciliation is retried).
139+
If the operator is only started with a single go routine, this could also block other reconciliation attempts.
139140

140141
Example for the `cleanup` policy:
141142

0 commit comments

Comments
 (0)