ryankert01 commented on code in PR #947:
URL: https://github.com/apache/yunikorn-k8shim/pull/947#discussion_r1923902661


##########
test/e2e/persistent_volume/persistent_volume_test.go:
##########
@@ -133,15 +134,16 @@ var _ = ginkgo.Describe("PersistentVolume", func() {
                Ω(err).NotTo(HaveOccurred())
        })
 
+       // Create nfs server and related rbac

Review Comment:
   Looks like it's only naming there, the create operation is still on L147. I 
think it's better move the comment back!



##########
test/e2e/persistent_volume/persistent_volume_test.go:
##########
@@ -338,19 +342,29 @@ func createNfsProvisioner(svaName string, serverName 
string, scName string) {
 func deleteNfsRelatedRoles(serviceAccount string, clusterRole string, 
clusterRoleBinding string) {
        ginkgo.By("Deleting NFS related roles and bindings")
        err := kClient.DeleteClusterRoleBindings(clusterRoleBinding)
+       if err != nil && !k8serrors.IsNotFound(err) {
+               Ω(err).NotTo(HaveOccurred())
+       }
+
        err2 := kClient.DeleteClusterRole(clusterRole)
-       err3 := kClient.DeleteServiceAccount(serviceAccount, dev)
+       if err2 != nil && !k8serrors.IsNotFound(err2) {

Review Comment:
   Thanks for the prompt reply. It make total sense to me now!



-- 
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]

Reply via email to