Skip to content

Commit

Permalink
Merge pull request kubernetes-csi#95 from mpatlasov/rebase-v4.0.1
Browse files Browse the repository at this point in the history
STOR-1573: Rebase `external-provisioner` to v4.0.1 for OCP 4.16
  • Loading branch information
openshift-merge-bot[bot] authored Apr 10, 2024
2 parents e14e487 + bb84213 commit 9e8af01
Show file tree
Hide file tree
Showing 1,003 changed files with 65,862 additions and 30,861 deletions.
307 changes: 307 additions & 0 deletions CHANGELOG/CHANGELOG-4.0.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Following table reflects the head of this branch.
| ReadWriteOncePod | Beta | On | [Single pod access mode for PersistentVolumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/#access-modes). | No |
| CSINodeExpandSecret | Beta | On | [CSI Node expansion secret](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/3107-csi-nodeexpandsecret) | No |
| HonorPVReclaimPolicy| Alpha |Off | [Honor the PV reclaim policy](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/2644-honor-pv-reclaim-policy) | No |
| PreventVolumeModeConversion | Alpha |Off | [Prevent unauthorized conversion of source volume mode](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/3141-prevent-volume-mode-conversion) | `--prevent-volume-mode-conversion` (No in-tree feature gate) |
| PreventVolumeModeConversion | Beta |On | [Prevent unauthorized conversion of source volume mode](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/3141-prevent-volume-mode-conversion) | `--prevent-volume-mode-conversion` (No in-tree feature gate) |
| CrossNamespaceVolumeDataSource | Alpha |Off | [Cross-namespace volume data source](https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/3294-provision-volumes-from-cross-namespace-snapshots) | `--feature-gates=CrossNamespaceVolumeDataSource=true` |

All other external-provisioner features and the external-provisioner itself is considered GA and fully supported.
Expand Down Expand Up @@ -126,7 +126,7 @@ See the [storage capacity section](#capacity-support) below for details.

* `--version`: Prints current external-provisioner version and quits.

* `--prevent-volume-mode-conversion`: Prevents an unauthorized user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot. Defaults to false.
* `--prevent-volume-mode-conversion`: Prevents an unauthorized user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot. Defaults to true.

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

Expand Down
2 changes: 1 addition & 1 deletion cmd/csi-provisioner/csi-provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ var (
nodeDeploymentMaxDelay = flag.Duration("node-deployment-max-delay", 60*time.Second, "Determines how long the external-provisioner sleeps at most before trying to own a PVC with immediate binding.")
controllerPublishReadOnly = flag.Bool("controller-publish-readonly", false, "This option enables PV to be marked as readonly at controller publish volume call if PVC accessmode has been set to ROX.")

preventVolumeModeConversion = flag.Bool("prevent-volume-mode-conversion", false, "Prevents an unauthorised user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot.")
preventVolumeModeConversion = flag.Bool("prevent-volume-mode-conversion", true, "Prevents an unauthorised user from modifying the volume mode when creating a PVC from an existing VolumeSnapshot.")

featureGates map[string]bool
provisionController *controller.ProvisionController
Expand Down
176 changes: 89 additions & 87 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,37 @@ module github.com/kubernetes-csi/external-provisioner
go 1.21

require (
github.com/container-storage-interface/spec v1.8.0
github.com/container-storage-interface/spec v1.9.0
github.com/golang/mock v1.6.0
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.1 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/kubernetes-csi/csi-lib-utils v0.16.0
github.com/kubernetes-csi/csi-test/v5 v5.0.0
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.2.0
github.com/miekg/dns v1.1.55 // indirect
github.com/prometheus/client_golang v1.16.0
github.com/google/uuid v1.5.0 // indirect
github.com/imdario/mergo v0.3.16 // indirect
github.com/kubernetes-csi/csi-lib-utils v0.17.0
github.com/kubernetes-csi/csi-test/v5 v5.2.0
github.com/kubernetes-csi/external-snapshotter/client/v6 v6.3.0
github.com/miekg/dns v1.1.57 // indirect
github.com/prometheus/client_golang v1.17.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
google.golang.org/grpc v1.59.0
google.golang.org/grpc v1.60.0
google.golang.org/protobuf v1.33.0
k8s.io/api v0.28.0
k8s.io/apimachinery v0.28.0
k8s.io/apiserver v0.28.0
k8s.io/client-go v0.28.0
k8s.io/component-base v0.28.0
k8s.io/component-helpers v0.28.0
k8s.io/csi-translation-lib v0.28.0
k8s.io/klog/v2 v2.100.1
sigs.k8s.io/controller-runtime v0.15.1
sigs.k8s.io/gateway-api v0.7.1
k8s.io/api v0.29.0
k8s.io/apimachinery v0.29.0
k8s.io/apiserver v0.29.0
k8s.io/client-go v1.5.2
k8s.io/component-base v0.29.0
k8s.io/component-helpers v0.29.0
k8s.io/csi-translation-lib v0.29.0
k8s.io/klog/v2 v2.110.1
sigs.k8s.io/controller-runtime v0.16.3
sigs.k8s.io/gateway-api v1.0.0
sigs.k8s.io/sig-storage-lib-external-provisioner/v9 v9.1.0-rc.0
)

require (
github.com/onsi/ginkgo/v2 v2.12.0
github.com/onsi/gomega v1.27.10
k8s.io/kubernetes v1.28.0
github.com/onsi/ginkgo/v2 v2.13.2
github.com/onsi/gomega v1.30.0
k8s.io/kubernetes v1.29.0
)

require (
Expand All @@ -49,50 +49,52 @@ require (
github.com/coreos/go-semver v0.3.1 // indirect
github.com/coreos/go-systemd/v22 v22.5.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/docker/distribution v2.8.2+incompatible // indirect
github.com/distribution/reference v0.5.0 // indirect
github.com/emicklei/go-restful/v3 v3.11.0 // indirect
github.com/evanphx/json-patch v5.6.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
github.com/evanphx/json-patch v5.7.0+incompatible // indirect
github.com/evanphx/json-patch/v5 v5.7.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/go-logr/logr v1.3.0 // indirect
github.com/go-logr/stdr v1.2.2 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/go-openapi/jsonpointer v0.20.1 // indirect
github.com/go-openapi/jsonreference v0.20.3 // indirect
github.com/go-openapi/swag v0.22.5 // indirect
github.com/go-task/slim-sprig v2.20.0+incompatible // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.4 // indirect
github.com/google/cel-go v0.16.0 // indirect
github.com/google/cel-go v0.17.7 // indirect
github.com/google/gnostic-models v0.6.8 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
github.com/gorilla/websocket v1.5.1 // indirect
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.17.1 // indirect
github.com/grpc-ecosystem/grpc-gateway/v2 v2.18.1 // indirect
github.com/huandu/xstrings v1.4.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/matttproud/golang_protobuf_extensions/v2 v2.0.0 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/moby/sys/mountinfo v0.6.2 // indirect
github.com/moby/sys/mountinfo v0.7.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/selinux v1.11.0 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/prometheus/client_model v0.4.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/spf13/cobra v1.7.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.45.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/spf13/cobra v1.8.0 // indirect
github.com/stoewer/go-strcase v1.3.0 // indirect
go.etcd.io/etcd/api/v3 v3.5.9 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.9 // indirect
go.etcd.io/etcd/client/v3 v3.5.9 // indirect
go.etcd.io/etcd/api/v3 v3.5.11 // indirect
go.etcd.io/etcd/client/pkg/v3 v3.5.11 // indirect
go.etcd.io/etcd/client/v3 v3.5.11 // indirect
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 // indirect
go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.46.1 // indirect
go.opentelemetry.io/otel v1.21.0 // indirect
Expand All @@ -103,94 +105,94 @@ require (
go.opentelemetry.io/otel/trace v1.21.0 // indirect
go.opentelemetry.io/proto/otlp v1.0.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.25.0 // indirect
go.uber.org/zap v1.26.0 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/oauth2 v0.15.0 // indirect
golang.org/x/sync v0.5.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/term v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.3.0 // indirect
golang.org/x/tools v0.12.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20231120223509-83a465c0220f // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.16.1 // indirect
google.golang.org/appengine v1.6.8 // indirect
google.golang.org/genproto v0.0.0-20231030173426-d783a09b4405 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20231106174013-bbf56f31fb17 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231127180814-3a041ad873d4 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20231106174013-bbf56f31fb17 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.28.0 // indirect
k8s.io/cloud-provider v0.28.0 // indirect
k8s.io/controller-manager v0.28.0 // indirect
k8s.io/kms v0.28.0 // indirect
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
k8s.io/apiextensions-apiserver v0.29.0-rc.1 // indirect
k8s.io/cloud-provider v0.29.0-rc.1 // indirect
k8s.io/controller-manager v0.29.0 // indirect
k8s.io/kms v0.29.0 // indirect
k8s.io/kube-openapi v0.0.0-20231010175941-2dd684a91f00 // indirect
k8s.io/kubectl v0.27.0 // indirect
k8s.io/kubelet v0.27.0 // indirect
k8s.io/mount-utils v0.27.0 // indirect
k8s.io/pod-security-admission v0.27.0 // indirect
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.1.4 // indirect
k8s.io/utils v0.0.0-20230726121419-3b25d923346b // indirect
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.28.3 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.3.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect
sigs.k8s.io/yaml v1.4.0 // indirect
)

replace k8s.io/api => k8s.io/api v0.28.0
replace k8s.io/api => k8s.io/api v0.29.0

replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.28.0
replace k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.29.0

replace k8s.io/apimachinery => k8s.io/apimachinery v0.28.0
replace k8s.io/apimachinery => k8s.io/apimachinery v0.29.0

replace k8s.io/apiserver => k8s.io/apiserver v0.28.0
replace k8s.io/apiserver => k8s.io/apiserver v0.29.0

replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.28.0
replace k8s.io/cli-runtime => k8s.io/cli-runtime v0.29.0

replace k8s.io/client-go => k8s.io/client-go v0.28.0
replace k8s.io/client-go => k8s.io/client-go v0.29.0

replace k8s.io/cloud-provider => k8s.io/cloud-provider v0.28.0
replace k8s.io/cloud-provider => k8s.io/cloud-provider v0.29.0

replace k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.28.0
replace k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.29.0

replace k8s.io/code-generator => k8s.io/code-generator v0.28.0
replace k8s.io/code-generator => k8s.io/code-generator v0.29.0

replace k8s.io/component-base => k8s.io/component-base v0.28.0
replace k8s.io/component-base => k8s.io/component-base v0.29.0

replace k8s.io/component-helpers => k8s.io/component-helpers v0.28.0
replace k8s.io/component-helpers => k8s.io/component-helpers v0.29.0

replace k8s.io/controller-manager => k8s.io/controller-manager v0.28.0
replace k8s.io/controller-manager => k8s.io/controller-manager v0.29.0

replace k8s.io/cri-api => k8s.io/cri-api v0.28.0
replace k8s.io/cri-api => k8s.io/cri-api v0.29.0

replace k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.28.0
replace k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.29.0

replace k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.28.0
replace k8s.io/dynamic-resource-allocation => k8s.io/dynamic-resource-allocation v0.29.0

replace k8s.io/endpointslice => k8s.io/endpointslice v0.28.0
replace k8s.io/endpointslice => k8s.io/endpointslice v0.29.0

replace k8s.io/kms => k8s.io/kms v0.28.0
replace k8s.io/kms => k8s.io/kms v0.29.0

replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.28.0
replace k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.29.0

replace k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.28.0
replace k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.29.0

replace k8s.io/kube-proxy => k8s.io/kube-proxy v0.28.0
replace k8s.io/kube-proxy => k8s.io/kube-proxy v0.29.0

replace k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.28.0
replace k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.29.0

replace k8s.io/kubectl => k8s.io/kubectl v0.28.0
replace k8s.io/kubectl => k8s.io/kubectl v0.29.0

replace k8s.io/kubelet => k8s.io/kubelet v0.28.0
replace k8s.io/kubelet => k8s.io/kubelet v0.29.0

replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.28.0
replace k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.29.0

replace k8s.io/metrics => k8s.io/metrics v0.28.0
replace k8s.io/metrics => k8s.io/metrics v0.29.0

replace k8s.io/mount-utils => k8s.io/mount-utils v0.28.0
replace k8s.io/mount-utils => k8s.io/mount-utils v0.29.0

replace k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.28.0
replace k8s.io/pod-security-admission => k8s.io/pod-security-admission v0.29.0

replace k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.28.0
replace k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.29.0
Loading

0 comments on commit 9e8af01

Please sign in to comment.