chenyulin0719 commented on code in PR #754:
URL: https://github.com/apache/yunikorn-k8shim/pull/754#discussion_r1438601153
##########
test/e2e/framework/helpers/k8s/k8s_utils.go:
##########
@@ -391,7 +391,13 @@ func (k *KubeCtl) DeleteNamespace(namespace string) error {
}
func (k *KubeCtl) TearDownNamespace(namespace string) error {
Review Comment:
Hi @chia7712,
I don't think we should cleanup both PV and PVC in TearDownNamespace.
PV/PVC were only used in "persistent_volume" e2e test. I think the cleanup
responsibility is on the e2e test itself. (Besides, PV is cluster resource and
is not bounded to namesapce.)
One of the reason we cleanup Jobs/Pods in TearDownNamespace() is those
objects are widely used in serveral e2e tests and sadly we didn't handle all
the cleanup well.
(IMO, the best practice is each e2e test clean Jobs/Pods by themself.
However, it quite difficult to review all the e2e test.)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]