Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typos #25

Merged
merged 1 commit into from
Dec 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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