Skip to content

Commit

Permalink
Merge pull request #57 from stefansedich/add-v-to-healthcheck-logs
Browse files Browse the repository at this point in the history
Add v to healthcheck logs
  • Loading branch information
k8s-ci-robot authored Dec 19, 2019
2 parents 240f9c9 + 4d87068 commit 8aca367
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/livenessprobe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (h *healthProbe) checkProbe(w http.ResponseWriter, req *http.Request) {
ctx, cancel := context.WithTimeout(req.Context(), *probeTimeout)
defer cancel()

klog.Infof("Sending probe request to CSI driver %q", h.driverName)
klog.V(5).Infof("Sending probe request to CSI driver %q", h.driverName)
ready, err := rpc.Probe(ctx, h.conn)
if err != nil {
w.WriteHeader(http.StatusInternalServerError)
Expand All @@ -68,7 +68,7 @@ func (h *healthProbe) checkProbe(w http.ResponseWriter, req *http.Request) {

w.WriteHeader(http.StatusOK)
w.Write([]byte(`ok`))
klog.Infof("Health check succeeded")
klog.V(5).Infof("Health check succeeded")
}

func main() {
Expand Down
1 change: 1 addition & 0 deletions deployment/kubernetes/hostpath-with-livenessprobe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ spec:
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v0.2.0
args:
- --v=5
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
volumes:
Expand Down
1 change: 1 addition & 0 deletions deployment/kubernetes/livenessprobe-sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v0.2.0
args:
- --v=5
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
#

0 comments on commit 8aca367

Please sign in to comment.