Skip to content

Commit

Permalink
remove deprecated connection-timeout arg
Browse files Browse the repository at this point in the history
  • Loading branch information
msau42 committed Jan 10, 2020
1 parent 59330b5 commit dba4835
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 211 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ spec:

* All glog / klog arguments are supported, such as `-v <log level>` or `-alsologtostderr`.

#### Deprecated arguments

* `--connection-timeout <duration>`: This option was used to limit establishing connection to CSI driver. Currently, the option does not have any effect and the external-provisioner tries to connect to CSI driver socket indefinitely. It is recommended to run ReadinessProbe on the driver to ensure that the driver comes up in reasonable time.

## Community, discussion, contribution, and support

Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
Expand Down
3 changes: 0 additions & 3 deletions cmd/livenessprobe/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (
"k8s.io/klog"

connlib "github.com/kubernetes-csi/csi-lib-utils/connection"
"github.com/kubernetes-csi/csi-lib-utils/deprecatedflags"
"github.com/kubernetes-csi/csi-lib-utils/rpc"

"google.golang.org/grpc"
Expand All @@ -37,8 +36,6 @@ var (
probeTimeout = flag.Duration("probe-timeout", time.Second, "Probe timeout in seconds")
csiAddress = flag.String("csi-address", "/run/csi/socket", "Address of the CSI driver socket.")
healthzPort = flag.String("health-port", "9808", "TCP ports for listening healthz requests")

_ = deprecatedflags.Add("connection-timeout")
)

type healthProbe struct {
Expand Down
201 changes: 0 additions & 201 deletions deployment/kubernetes/hostpath-with-livenessprobe.yaml

This file was deleted.

5 changes: 2 additions & 3 deletions deployment/kubernetes/livenessprobe-sidecar.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: hostpath-driver
image: quay.io/k8scsi/hostpathplugin:v0.2.0
image: quay.io/k8scsi/hostpathplugin:canary
imagePullPolicy: Always
securityContext:
privileged: true
Expand Down Expand Up @@ -47,9 +47,8 @@
volumeMounts:
- mountPath: /csi
name: socket-dir
image: quay.io/k8scsi/livenessprobe:v0.2.0
image: quay.io/k8scsi/livenessprobe:canary
args:
- --v=5
- --csi-address=/csi/csi.sock
- --connection-timeout=3s
#

0 comments on commit dba4835

Please sign in to comment.