@@ -18,6 +18,7 @@ package kubeadm
18
18
19
19
import (
20
20
"k8s.io/kubernetes/test/e2e/framework"
21
+ e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
21
22
22
23
"github.com/onsi/ginkgo"
23
24
"github.com/onsi/gomega"
@@ -77,7 +78,7 @@ var _ = Describe("DNS addon", func() {
77
78
ginkgo .Context ("kube-dns ServiceAccount" , func () {
78
79
ginkgo .It ("should exist" , func () {
79
80
if dnsType != "kube-dns" {
80
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
81
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
81
82
}
82
83
83
84
ExpectServiceAccount (f .ClientSet , kubeSystemNamespace , kubeDNSServiceAccountName )
@@ -87,7 +88,7 @@ var _ = Describe("DNS addon", func() {
87
88
ginkgo .Context ("kube-dns Deployment" , func () {
88
89
ginkgo .It ("should exist and be properly configured" , func () {
89
90
if dnsType != "kube-dns" {
90
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
91
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
91
92
}
92
93
93
94
d := GetDeployment (f .ClientSet , kubeSystemNamespace , kubeDNSDeploymentName )
@@ -101,15 +102,15 @@ var _ = Describe("DNS addon", func() {
101
102
ginkgo .Context ("CoreDNS ServiceAccount" , func () {
102
103
ginkgo .It ("should exist" , func () {
103
104
if dnsType != "CoreDNS" {
104
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
105
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
105
106
}
106
107
107
108
ExpectServiceAccount (f .ClientSet , kubeSystemNamespace , coreDNSServiceAccountName )
108
109
})
109
110
110
111
ginkgo .It ("should have related ClusterRole and ClusterRoleBinding" , func () {
111
112
if dnsType != "CoreDNS" {
112
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
113
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
113
114
}
114
115
115
116
ExpectClusterRole (f .ClientSet , coreDNSRoleName )
@@ -120,7 +121,7 @@ var _ = Describe("DNS addon", func() {
120
121
ginkgo .Context ("CoreDNS ConfigMap" , func () {
121
122
ginkgo .It ("should exist and be properly configured" , func () {
122
123
if dnsType != "CoreDNS" {
123
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
124
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
124
125
}
125
126
126
127
cm := GetConfigMap (f .ClientSet , kubeSystemNamespace , coreDNSConfigMap )
@@ -132,7 +133,7 @@ var _ = Describe("DNS addon", func() {
132
133
ginkgo .Context ("CoreDNS Deployment" , func () {
133
134
ginkgo .It ("should exist and be properly configured" , func () {
134
135
if dnsType != "CoreDNS" {
135
- framework .Skipf ("Skipping because DNS type is %s" , dnsType )
136
+ e2eskipper .Skipf ("Skipping because DNS type is %s" , dnsType )
136
137
}
137
138
138
139
d := GetDeployment (f .ClientSet , kubeSystemNamespace , coreDNSDeploymentName )
0 commit comments