Skip to content

Commit

Permalink
chore(upgrade): update dependencies of provisioner codebase (#98)
Browse files Browse the repository at this point in the history
- sigs.k8s.io/sig-storage-lib-external-provisioner to v7.0.1
- Kubernetes dependencies to v0.20.2
- kolg to v2.10.0
- This commit updates the kubernetes version from 1.17 to 1.18 in intro.md

Signed-off-by: mittachaitu <[email protected]>
  • Loading branch information
sai chaithanya committed Aug 30, 2021
1 parent 9899e8b commit 1b990f7
Show file tree
Hide file tree
Showing 23 changed files with 475 additions and 351 deletions.
10 changes: 9 additions & 1 deletion cmd/provisioner-nfs/app/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package app

import (
"context"
"flag"
"fmt"
"net/http"
Expand Down Expand Up @@ -93,5 +94,12 @@ func Start(cmd *cobra.Command) error {
}
}()

return provisioner.Start()
// Create a context which can be cancled
ctx, cancelFn := context.WithCancel(context.TODO())

// NOTE: CancelFunc will be called by RegisterShutdownChannel
// So not required to do same action here
provisioner.RegisterShutdownChannel(cancelFn)

return provisioner.Start(ctx)
}
2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
## Prerequisites
Before installing nfs-provisioner make sure your Kubernetes cluster meets the following prerequisites:

1. Kubernetes version 1.17
1. Kubernetes version 1.18
2. NFS Client is installed on all nodes that will run a pod that mounts an `openebs-rwx` volume.
Here's how to prepare an NFS client on some common Operating Systems:

Expand Down
67 changes: 33 additions & 34 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,50 +3,49 @@ module github.com/openebs/dynamic-nfs-provisioner
go 1.15

replace (
k8s.io/api => k8s.io/api v0.17.3
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.17.3
k8s.io/apimachinery => k8s.io/apimachinery v0.17.4-beta.0
k8s.io/apiserver => k8s.io/apiserver v0.17.3
k8s.io/cli-runtime => k8s.io/cli-runtime v0.17.3
k8s.io/client-go => k8s.io/client-go v0.17.3
k8s.io/cloud-provider => k8s.io/cloud-provider v0.17.3
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.17.3
k8s.io/code-generator => k8s.io/code-generator v0.17.4-beta.0
k8s.io/component-base => k8s.io/component-base v0.17.3
k8s.io/cri-api => k8s.io/cri-api v0.17.4-beta.0
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.17.3
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.17.3
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.17.3
k8s.io/kube-proxy => k8s.io/kube-proxy v0.17.3
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.17.3
k8s.io/kubectl => k8s.io/kubectl v0.17.3
k8s.io/kubelet => k8s.io/kubelet v0.17.3
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.17.3
k8s.io/metrics => k8s.io/metrics v0.17.3
k8s.io/node-api => k8s.io/node-api v0.17.3
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.17.3
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.17.3
k8s.io/sample-controller => k8s.io/sample-controller v0.17.3
k8s.io/api => k8s.io/api v0.20.2
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2
k8s.io/apimachinery => k8s.io/apimachinery v0.20.2
k8s.io/apiserver => k8s.io/apiserver v0.20.2
k8s.io/cli-runtime => k8s.io/cli-runtime v0.20.2
k8s.io/client-go => k8s.io/client-go v0.20.2
k8s.io/cloud-provider => k8s.io/cloud-provider v0.20.2
k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.20.2
k8s.io/code-generator => k8s.io/code-generator v0.20.2
k8s.io/component-base => k8s.io/component-base v0.20.2
k8s.io/cri-api => k8s.io/cri-api v0.20.2
k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.20.2
k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.20.2
k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.20.2
k8s.io/kube-proxy => k8s.io/kube-proxy v0.20.2
k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.20.2
k8s.io/kubectl => k8s.io/kubectl v0.20.2
k8s.io/kubelet => k8s.io/kubelet v0.20.2
k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.20.2
k8s.io/metrics => k8s.io/metrics v0.20.2
k8s.io/node-api => k8s.io/node-api v0.20.2
k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.2
k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.20.2
k8s.io/sample-controller => k8s.io/sample-controller v0.20.2
)

require (
github.com/cloudflare/cfssl v1.6.0 // indirect
github.com/cloudflare/go-metrics v0.0.0-20151117154305-6a9aea36fb41 // indirect
github.com/ghodss/yaml v1.0.0
github.com/google/go-cmp v0.4.0
github.com/google/go-cmp v0.5.2
github.com/onsi/ginkgo v1.12.0
github.com/onsi/gomega v1.9.0
github.com/openebs/maya v1.12.1
github.com/openebs/maya v1.12.1-0.20210821080724-b90b5ede546d
github.com/pkg/errors v0.9.1
github.com/prometheus/client_golang v1.9.0
github.com/spf13/cobra v1.1.1
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.4.0
github.com/zmap/zlint v0.0.0-20190806154020-fd021b4cfbeb // indirect
k8s.io/api v0.17.3
k8s.io/apimachinery v0.17.3
github.com/stretchr/testify v1.6.1
golang.org/x/crypto v0.0.0-20201124201722-c8d3bf9c5392 // indirect
google.golang.org/appengine v1.6.6 // indirect
k8s.io/api v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/client-go v11.0.0+incompatible
k8s.io/klog v1.0.0
k8s.io/klog/v2 v2.10.0
k8s.io/kubernetes v1.17.3
sigs.k8s.io/sig-storage-lib-external-provisioner v4.1.0+incompatible
sigs.k8s.io/sig-storage-lib-external-provisioner/v7 v7.0.1
)
Loading

0 comments on commit 1b990f7

Please sign in to comment.