Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
darkowlzz committed Dec 17, 2018
1 parent 9350f31 commit b4beb0d
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 b4beb0d

Please sign in to comment.