mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
kubeadm: fix incorrect package name in idempotency_test.go
This commit is contained in:
parent
74f779fbb5
commit
01c9e67c90
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package apiclient_test
|
package apiclient
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
@ -22,7 +22,6 @@ import (
|
|||||||
"k8s.io/api/core/v1"
|
"k8s.io/api/core/v1"
|
||||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||||
"k8s.io/client-go/kubernetes/fake"
|
"k8s.io/client-go/kubernetes/fake"
|
||||||
"k8s.io/kubernetes/cmd/kubeadm/app/util/apiclient"
|
|
||||||
kubeletapis "k8s.io/kubernetes/pkg/kubelet/apis"
|
kubeletapis "k8s.io/kubernetes/pkg/kubelet/apis"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -68,7 +67,7 @@ func TestPatchNodeNonErrorCases(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("failed to create node to fake client: %v", err)
|
t.Fatalf("failed to create node to fake client: %v", err)
|
||||||
}
|
}
|
||||||
conditionFunction := apiclient.PatchNodeOnce(client, tc.lookupName, func(node *v1.Node) {
|
conditionFunction := PatchNodeOnce(client, tc.lookupName, func(node *v1.Node) {
|
||||||
node.Annotations = map[string]string{
|
node.Annotations = map[string]string{
|
||||||
"updatedBy": "test",
|
"updatedBy": "test",
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user