move well-known kubelet cloud provider annotations to k8s.io/cloud-provider (#88631)
* move well-known kubelet cloud provider annotations to k8s.io/cloud-provider Signed-off-by: andrewsykim <kim.andrewsy@gmail.com> * cloud provider: rename AnnotationProvidedIPAddr to AnnotationAlphaProvidedIPAddr to indicate alpha status Signed-off-by: Andrew Sy Kim <kim.andrewsy@gmail.com>
This commit is contained in:
@@ -34,7 +34,6 @@ import (
|
||||
"k8s.io/cloud-provider"
|
||||
cloudproviderapi "k8s.io/cloud-provider/api"
|
||||
fakecloud "k8s.io/cloud-provider/fake"
|
||||
kubeletapis "k8s.io/kubernetes/pkg/kubelet/apis"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/stretchr/testify/assert"
|
||||
@@ -462,7 +461,7 @@ func Test_AddCloudNode(t *testing.T) {
|
||||
Name: "node0",
|
||||
CreationTimestamp: metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||
Annotations: map[string]string{
|
||||
kubeletapis.AnnotationProvidedIPAddr: "10.0.0.1",
|
||||
cloudproviderapi.AnnotationAlphaProvidedIPAddr: "10.0.0.1",
|
||||
},
|
||||
},
|
||||
Spec: v1.NodeSpec{
|
||||
@@ -502,7 +501,7 @@ func Test_AddCloudNode(t *testing.T) {
|
||||
Name: "node0",
|
||||
CreationTimestamp: metav1.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC),
|
||||
Annotations: map[string]string{
|
||||
kubeletapis.AnnotationProvidedIPAddr: "10.0.0.1",
|
||||
cloudproviderapi.AnnotationAlphaProvidedIPAddr: "10.0.0.1",
|
||||
},
|
||||
},
|
||||
Spec: v1.NodeSpec{
|
||||
|
||||
Reference in New Issue
Block a user