update dependencies

Signed-off-by: hongming <talonwan@yunify.com>
This commit is contained in:
hongming
2020-12-22 16:48:26 +08:00
parent 4a11a50544
commit fe6c5de00f
2857 changed files with 252134 additions and 115656 deletions

View File

@@ -17,9 +17,10 @@ limitations under the License.
package ippool
import (
"context"
"testing"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"kubesphere.io/kubesphere/pkg/apis/network/v1alpha1"
fakeks "kubesphere.io/kubesphere/pkg/client/clientset/versioned/fake"
"kubesphere.io/kubesphere/pkg/simple/client/network/ippool/ipam"
@@ -33,8 +34,8 @@ func TestProvider_GetIPPoolStats(t *testing.T) {
p := testNewProvider()
pool := v1alpha1.IPPool{
TypeMeta: v1.TypeMeta{},
ObjectMeta: v1.ObjectMeta{
TypeMeta: metav1.TypeMeta{},
ObjectMeta: metav1.ObjectMeta{
Name: "testippool",
Labels: map[string]string{
v1alpha1.IPPoolTypeLabel: v1alpha1.VLAN,
@@ -47,7 +48,7 @@ func TestProvider_GetIPPoolStats(t *testing.T) {
Status: v1alpha1.IPPoolStatus{},
}
_, err := p.kubesphereClient.NetworkV1alpha1().IPPools().Create(&pool)
_, err := p.kubesphereClient.NetworkV1alpha1().IPPools().Create(context.Background(), &pool, metav1.CreateOptions{})
if err != nil {
t.FailNow()
}