Skip to content

Commit c97baa3

Browse files
authored
Merge pull request kubernetes#85456 from BenTheElder/fix-providerless
Fix providerless
2 parents 384e45f + cf510ac commit c97baa3

File tree

9 files changed

+22
-10
lines changed

9 files changed

+22
-10
lines changed

cmd/kube-controller-manager/app/plugins_providerless.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,22 @@ limitations under the License.
1919
package app
2020

2121
import (
22+
"k8s.io/component-base/featuregate"
23+
2224
"k8s.io/kubernetes/pkg/volume"
2325
)
2426

25-
func appendAttachableLegacyProviderVolumes(allPlugins []volume.VolumePlugin) []volume.VolumePlugin {
27+
func appendAttachableLegacyProviderVolumes(allPlugins []volume.VolumePlugin, featureGate featuregate.FeatureGate) ([]volume.VolumePlugin, error) {
2628
// no-op when compiled without legacy cloud providers
27-
return allPlugins
29+
return allPlugins, nil
2830
}
2931

30-
func appendExpandableLegacyProviderVolumes(allPlugins []volume.VolumePlugin) []volume.VolumePlugin {
32+
func appendExpandableLegacyProviderVolumes(allPlugins []volume.VolumePlugin, featureGate featuregate.FeatureGate) ([]volume.VolumePlugin, error) {
3133
// no-op when compiled without legacy cloud providers
32-
return allPlugins
34+
return allPlugins, nil
3335
}
3436

35-
func appendLegacyProviderVolumes(allPlugins []volume.VolumePlugin) []volume.VolumePlugin {
37+
func appendLegacyProviderVolumes(allPlugins []volume.VolumePlugin, featureGate featuregate.FeatureGate) ([]volume.VolumePlugin, error) {
3638
// no-op when compiled without legacy cloud providers
37-
return allPlugins
39+
return allPlugins, nil
3840
}

cmd/kubelet/app/plugins_providerless.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ limitations under the License.
1818

1919
package app
2020

21-
import "k8s.io/kubernetes/pkg/volume"
21+
import (
22+
"k8s.io/component-base/featuregate"
2223

23-
func appendLegacyProviderVolumes(allPlugins []volume.VolumePlugin) []volume.VolumePlugin {
24+
"k8s.io/kubernetes/pkg/volume"
25+
)
26+
27+
func appendLegacyProviderVolumes(allPlugins []volume.VolumePlugin, featureGate featuregate.FeatureGate) ([]volume.VolumePlugin, error) {
2428
// no-op when we didn't compile in support for these
25-
return allPlugins
29+
return allPlugins, nil
2630
}

pkg/controller/nodeipam/nolegacyprovider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func startLegacyIPAM(
3434
kubeClient clientset.Interface,
3535
clusterCIDRs []*net.IPNet,
3636
serviceCIDR *net.IPNet,
37-
nodeCIDRMaskSize int,
37+
nodeCIDRMaskSizes []int,
3838
) {
3939
klog.Fatal("Error trying to Init(): legacy cloud provider support disabled at build time")
4040
}

pkg/volume/awsebs/attacher_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build linux
23

34
/*

pkg/volume/awsebs/attacher_unsupported.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build !linux,!windows
23

34
/*

pkg/volume/awsebs/attacher_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build windows
23

34
/*

pkg/volume/vsphere_volume/vsphere_volume_util_linux.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build linux
23

34
/*

pkg/volume/vsphere_volume/vsphere_volume_util_unsupported.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build !linux,!windows
23

34
/*

pkg/volume/vsphere_volume/vsphere_volume_util_windows.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// +build !providerless
12
// +build windows
23

34
/*

0 commit comments

Comments
 (0)