Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kustomize rbd-mirror directory #1569

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Conversation

ELENAGER
Copy link
Member

This PR addresses the following comment: #1564 (comment)

@ELENAGER ELENAGER requested a review from nirs September 23, 2024 08:01
@ELENAGER ELENAGER force-pushed the kustomize_rbd_mirror_test branch 3 times, most recently from 7fef775 to 026b344 Compare September 23, 2024 09:40
Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arranging the resource for volume replication and volume group replication makes looks reasonable, but is wrong for the way these resources are used. We need one kustomization for the start hook, and another for the test hook.

The layout can be something like:

├── README.md
├── start
├── start-data
│   ├── kustomization.yaml
│   ├── rbd-mirror-secret.yaml
│   ├── rbd-mirror.yaml
│   └── vrc-sample.yaml
├── test
└── test-data
    ├── kustomization.yaml
    ├── rbd-pvc.yaml
    └── vr-sample.yaml

Note that rbd-mirror-secret.yaml is a template and we cannot deploy it using kustomization, but we can reploy rbd-mirror.yaml and vrc-sample.yaml using the kustomization.

This generic structure can work for lot of other addons and make this part is easier to maintain.

@ELENAGER ELENAGER force-pushed the kustomize_rbd_mirror_test branch 4 times, most recently from f135d48 to 9a61448 Compare September 23, 2024 19:03
Copy link
Member

@nirs nirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Missing: delete the test-data kustomization at the end of the test, instead of deleting the resources manually.

test/addons/rbd-mirror/start Show resolved Hide resolved
test/addons/rbd-mirror/start Outdated Show resolved Hide resolved
test/addons/rbd-mirror/start Outdated Show resolved Hide resolved
test/addons/rbd-mirror/test Outdated Show resolved Hide resolved
test/addons/rbd-mirror/test Outdated Show resolved Hide resolved
@ELENAGER ELENAGER force-pushed the kustomize_rbd_mirror_test branch 4 times, most recently from 583fd54 to e85b0c3 Compare September 24, 2024 07:36
@ELENAGER
Copy link
Member Author

Nice!

Missing: delete the test-data kustomization at the end of the test, instead of deleting the resources manually.

Done

@ELENAGER ELENAGER force-pushed the kustomize_rbd_mirror_test branch 4 times, most recently from 45780ac to 3aab5ab Compare September 24, 2024 14:22
Signed-off-by: Elena Gershkovich <elenage@il.ibm.com>
@nirs nirs merged commit bdc2604 into RamenDR:main Sep 26, 2024
20 checks passed
@ELENAGER ELENAGER deleted the kustomize_rbd_mirror_test branch September 29, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants