Skip to content

Commit fb59e7f

Browse files
authored
fix socket path (#249)
* publish v1.0.4 Signed-off-by: Ashima-Ashima1 <Ashima.Ashima1@ibm.com> * update versions Signed-off-by: Ashima-Ashima1 <Ashima.Ashima1@ibm.com> --------- Signed-off-by: Ashima-Ashima1 <Ashima.Ashima1@ibm.com>
1 parent 5e2ff88 commit fb59e7f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.secrets.baseline

Lines changed: 1 addition & 1 deletion
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-08-05T01:41:09Z",
6+
"generated_at": "2025-08-05T11:04:40Z",
77
"plugins_used": [
88
{
99
"name": "AWSKeyDetector"

cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func serveMetrics(mode, metricsAddress string, logger *zap.Logger) {
136136
logger.Info(logMsg)
137137
http.Handle("/metrics", promhttp.Handler())
138138
if strings.Contains(mode, "node") {
139-
http.HandleFunc("/cos-csi-mounter/socket-health", func(w http.ResponseWriter, _ *http.Request) {
139+
http.HandleFunc("/socket-health", func(w http.ResponseWriter, _ *http.Request) {
140140
if err := checkCosCsiMounterSocketHealth(); err != nil {
141141
http.Error(w, "unhealthy: "+err.Error(), http.StatusInternalServerError)
142142
return

cmd/main_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ func TestServeMetrics(t *testing.T) {
6262
_ = resp.Body.Close()
6363
}()
6464

65-
resp, err = http.Get("http://" + addr + "/cos-csi-mounter/socket-health")
65+
resp, err = http.Get("http://" + addr + "/socket-health")
6666
assert.NoError(t, err)
6767
assert.NotEqual(t, 200, resp.StatusCode)
6868
defer func() {

0 commit comments

Comments
 (0)