Skip to content

Commit

Permalink
Merge pull request #25 from darkowlzz/typo-fix
Browse files Browse the repository at this point in the history
fix typos
  • Loading branch information
k8s-ci-robot authored Dec 18, 2018
2 parents 9350f31 + b4beb0d commit 5359488
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
## Overview

The purpose of liveness probe is to be able to detect liveness of CSI driver
and in case of as a driver's failure report it by returning non zero return code.
and in case of a driver's failure, report it by returning non zero return code.
Livenessprobe leverages CSI Probe API call, which must be answered by CSI
compatible driver.
Liveness probe is meant to be used in pair with kubelet's LinessProbe hook, which
executes it periodically and check the rerutn code. Non zero return code indicates
Liveness probe is meant to be used in pair with kubelet's LivenessProbe hook, which
executes it periodically and check the return code. Non zero return code indicates
to kubelet that pod is not healthy and kubelet schedules pod restart to recover it.

See CSI spec for more information about Probe API call.
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func getCSIConnection() (connection.CSIConnection, error) {
return csiConn, nil
}

func chekcHealth(w http.ResponseWriter, req *http.Request) {
func checkHealth(w http.ResponseWriter, req *http.Request) {

glog.Infof("Request: %s from: %s\n", req.URL.Path, req.RemoteAddr)
csiConn, err := getCSIConnection()
Expand Down Expand Up @@ -95,7 +95,7 @@ func main() {
flag.Parse()

addr := net.JoinHostPort("0.0.0.0", *healthzPort)
http.HandleFunc("/healthz", chekcHealth)
http.HandleFunc("/healthz", checkHealth)
glog.Infof("Serving requests to /healthz on: %s", addr)
err := http.ListenAndServe(addr, nil)
if err != nil {
Expand Down

0 comments on commit 5359488

Please sign in to comment.