diff --git a/docs/installation.md b/docs/installation.md index 42bde631..c9ac3b6b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -91,7 +91,7 @@ $ kubectl directpv install --openshift #### Installing by generating DirectPV manifests To install using generated manifests file, run below command ```sh -$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh - apply +$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh -s - apply ``` ## What's next diff --git a/docs/tools/install.sh b/docs/tools/install.sh index 5c6c0f3b..4f2591f3 100755 --- a/docs/tools/install.sh +++ b/docs/tools/install.sh @@ -113,7 +113,7 @@ function check_directcsi_consistency() { } function is_psp_found() { - kubectl get --ignore-not-found=true psp directpv-min-io --no-headers -o NAME | grep -q . + kubectl get --ignore-not-found=true psp directpv-min-io --no-headers -o NAME 2>/dev/null | grep -q . } function init() { diff --git a/docs/upgrade.md b/docs/upgrade.md index 48839cf6..ba1e0693 100644 --- a/docs/upgrade.md +++ b/docs/upgrade.md @@ -18,7 +18,7 @@ Follow the below steps for an in-place upgrade 1. Upgrade DirectPV plugin by [this documentation](#upgrade-directpv-plugin). 2. Run install script with appropriate node-selector, tolerations, and `KUBELET_DIR_PATH` environment variable. Below is an example: ```sh -$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh - apply +$ curl -sfL https://github.com/minio/directpv/raw/master/docs/tools/install.sh | sh -s - apply ``` ### Upgrade legacy DirectCSI CSI driver