-
Notifications
You must be signed in to change notification settings - Fork 56
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
Conversation
7fef775
to
026b344
Compare
There was a problem hiding this 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.
f135d48
to
9a61448
Compare
There was a problem hiding this 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.
583fd54
to
e85b0c3
Compare
Done |
45780ac
to
3aab5ab
Compare
Signed-off-by: Elena Gershkovich <elenage@il.ibm.com>
3aab5ab
to
ec040ae
Compare
This PR addresses the following comment: #1564 (comment)