remove pkg/cloudprovider

This commit is contained in:
carlory 2024-05-10 15:44:58 +08:00
parent 9d87fa215d
commit ab0205bb33
8 changed files with 0 additions and 108 deletions

View File

@ -23,7 +23,6 @@ import (
// ensure libs have a chance to globally register their flags
_ "k8s.io/apiserver/pkg/admission"
_ "k8s.io/kubernetes/pkg/cloudprovider/providers"
)
// AddCustomGlobalFlags explicitly registers flags that internal packages register

View File

@ -25,8 +25,6 @@ import (
"k8s.io/klog/v2"
// ensure the cloud providers are installed
_ "k8s.io/kubernetes/pkg/cloudprovider/providers"
// Volume plugins
"k8s.io/kubernetes/pkg/volume"
"k8s.io/kubernetes/pkg/volume/csi"

View File

@ -37,9 +37,6 @@ import (
"k8s.io/kubernetes/pkg/volume/nfs"
"k8s.io/kubernetes/pkg/volume/projected"
"k8s.io/kubernetes/pkg/volume/secret"
// Cloud providers
_ "k8s.io/kubernetes/pkg/cloudprovider/providers"
)
// ProbeVolumePlugins collects all volume plugins into an easy to use list.

View File

@ -1,31 +0,0 @@
# See the OWNERS docs at https://go.k8s.io/owners
approvers:
- mikedanese
- dims
- andrewsykim
- cheftako
reviewers:
- thockin
- smarterclayton
- wojtek-t
- deads2k
- derekwaynecarr
- caesarxuchao
- mikedanese
- liggitt
- sttts
- dchen1107
- saad-ali
- luxas
- justinsb
- jsafrane
- dims
- freehan
- jingxu97
- wlan0
- cheftako
- andrewsykim
labels:
- sig/cloud-provider
- area/cloudprovider

View File

@ -1,30 +0,0 @@
### Deprecation Notice
Cloud providers in this directory are **deprecated** and will be **removed** in favor of external (a.k.a out-of-tree) providers. Existing providers in this directory (a.k.a in-tree providers) should only make small incremental changes as needed and avoid large refactors or new features. New providers seeking to support Kubernetes should follow the out-of-tree model as specified in the [Running Kubernetes Cloud Controller Manager docs](https://kubernetes.io/docs/tasks/administer-cluster/running-cloud-controller/). For more information on the future of Kubernetes cloud providers see [KEP-0002](https://git.k8s.io/enhancements/keps/sig-cloud-provider/20180530-cloud-controller-manager.md) and [KEP-0013](https://git.k8s.io/enhancements/keps/sig-cloud-provider/20190125-removing-in-tree-providers.md).
Cloud Providers in this directory will continue to be actively developed or maintained and supported at their current level of support as a longer-term solution evolves. See the following enhancement issues to track the status of out-of-tree support for cloud providers in this repo:
* AWS: https://github.com/kubernetes/enhancements/issues/631
* Azure: https://github.com/kubernetes/enhancements/issues/667
* CloudStack: https://github.com/kubernetes/enhancements/issues/672
* GCE: https://github.com/kubernetes/enhancements/issues/668
* IBM: https://github.com/kubernetes/enhancements/issues/671
* OpenStack: https://github.com/kubernetes/enhancements/issues/669
* oVirt: https://github.com/kubernetes/enhancements/issues/673
* Photon: https://github.com/kubernetes/enhancements/issues/674
* vSphere: https://github.com/kubernetes/enhancements/issues/670
## Overview:
The mechanism for supporting cloud providers is currently in transition: the original method of implementing cloud provider-specific functionality within the main kubernetes tree (here) is no longer advised; however, the proposed solution is still in development.
#### Guidance for potential cloud providers:
* Support for cloud providers is currently in a state of flux. Background information on motivation and the proposal for improving is in the github [proposal](https://git.k8s.io/design-proposals-archive/cloud-provider/cloud-provider-refactoring.md).
* In support of this plan, a new cloud-controller-manager binary was added in 1.6. This was the first of several steps (see the proposal for more information).
* Attempts to contribute new cloud providers or (to a lesser extent) persistent volumes to the core repo will likely meet with some pushback from reviewers/approvers.
* It is understood that this is an unfortunate situation in which 'the old way is no longer supported but the new way is not ready yet', but the initial path is unsustainable, and contributors are encouraged to participate in the implementation of the proposed long-term solution, as there is risk that PRs for new cloud providers here will not be approved.
* Though the fully productized support envisioned in the proposal is still 2 - 3 releases out, the foundational work is underway, and a motivated cloud provider could accomplish the work in a forward-looking way. Contributors are encouraged to assist with the implementation of the design outlined in the proposal.
#### Some additional context on status / direction:
* 1.6 added a new cloud-controller-manager binary that may be used for testing the new out-of-core cloudprovider flow.
* Setting cloud-provider=external allows for creation of a separate controller-manager binary
* 1.7 adds [extensible admission control](https://git.k8s.io/design-proposals-archive/api-machinery/admission_control_extension.md), further enabling topology customization.

View File

@ -1,19 +0,0 @@
/*
Copyright 2014 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Package cloudprovider supplies interfaces and implementations for cloud service providers.
// To use: import cloudprovider "k8s.io/cloud-provider"
package cloudprovider

View File

@ -1,5 +0,0 @@
rules:
# prevent any k8s.io/kubernetes imports outside of this package
- selectorRegexp: k8s[.]io/kubernetes
allowedPrefixes:
- k8s.io/kubernetes/pkg/cloudprovider/providers

View File

@ -1,17 +0,0 @@
/*
Copyright 2019 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package cloudprovider