Skip to content

Commit 8a528ea

Browse files
committed
comment unmount call
Signed-off-by: Ashima-Ashima1 <[email protected]>
1 parent 5d0acec commit 8a528ea

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.secrets.baseline

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"files": "go.sum|^.secrets.baseline$",
44
"lines": null
55
},
6-
"generated_at": "2025-04-07T12:56:25Z",
6+
"generated_at": "2025-04-09T14:27:39Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

cos-csi-mounter/server/server.go

+5-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func main() {
7272
router := gin.Default()
7373

7474
router.POST("/api/cos/mount", handleCosMount())
75-
router.POST("/api/cos/unmount", handleCosUnmount())
75+
// router.POST("/api/cos/unmount", handleCosUnmount())
7676

7777
// Serve HTTP requests over Unix socket
7878
err = http.Serve(listener, router)
@@ -118,6 +118,9 @@ func handleCosMount() gin.HandlerFunc {
118118
}
119119
}
120120

121+
// Currently by calling FuseUnmount method from NodeServer is able to unmount the volume
122+
// If required to have specific unmount methods based on mounters then following call can be modified and used
123+
/*
121124
func handleCosUnmount() gin.HandlerFunc {
122125
return func(c *gin.Context) {
123126
var request struct {
@@ -146,3 +149,4 @@ func handleCosUnmount() gin.HandlerFunc {
146149
c.JSON(http.StatusOK, "Success!!")
147150
}
148151
}
152+
*/

0 commit comments

Comments
 (0)