Skip to content

Commit 36a6729

Browse files
committed
chore: fix README.md
1 parent 4a67d47 commit 36a6729

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ Some minio resource properties are ignored on update. This is done by design to
8181
>
8282
> The operator is designed to manage the entire lifecycle of its resources. This feature allows the operator to 'take ownership' of Minio objects it did not originally create. Once the operator takes ownership of these existing Minio objects - it _can_ and _will_ modify them to match the state of its corresponding Kubernetes resources!
8383
84-
In more complex scenarios, users might want the operator to manage existing Minio objects. To allow existing objects to be managed by the operator, set the `.spec.migrate` field to _true_ for these resources.
84+
In more complex scenarios, users might want the operator to manage existing Minio objects. To accomplish this:
8585

86+
1. Model and deploy a _minio-operator-ext_ resource modelling the existing Minio object.
87+
2. Verify that the deployed resource _fails to reconcile_ because the operator detects that the resource already exists
88+
3. Patch/edit the resource with a _.spec.migrate_ set to _true_. For example, you'd edit an existing _MinioBucket_ named 'a' with the following field:
8689
```yaml
8790
apiVersion: bfiola.dev/v1
8891
kind: MinioBucket
@@ -92,6 +95,8 @@ spec:
9295
name: a
9396
migrate: true # <- add this
9497
```
98+
4. The operator will acknowledge the _.spec.migrate_ field, ignore existence checks and 'take ownership' of the existing resource.
99+
5. The operator will delete the _.spec.migrate_ field - indicating that the operator now manages the resource.
95100
96101
> [!NOTE]
97102
>

0 commit comments

Comments
 (0)