in pkg/controller/service rename service_controller.go to controller.go

This commit is contained in:
Cristian Dima 2019-10-23 01:44:40 +03:00
parent a18de39166
commit da759609dc
5 changed files with 4 additions and 4 deletions

View File

@ -203,7 +203,7 @@ const (
CertificateKeySize = 32
// LabelNodeRoleMaster specifies that a node is a control-plane
// This is a duplicate definition of the constant in pkg/controller/service/service_controller.go
// This is a duplicate definition of the constant in pkg/controller/service/controller.go
LabelNodeRoleMaster = "node-role.kubernetes.io/master"
// AnnotationKubeadmCRISocket specifies the annotation kubeadm uses to preserve the crisocket information given to kubeadm at

View File

@ -3,9 +3,9 @@ load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
srcs = [
"controller.go",
"doc.go",
"patch.go",
"service_controller.go",
],
importpath = "k8s.io/kubernetes/pkg/controller/service",
visibility = ["//visibility:public"],
@ -36,8 +36,8 @@ go_library(
go_test(
name = "go_default_test",
srcs = [
"controller_test.go",
"patch_test.go",
"service_controller_test.go",
],
embed = [":go_default_library"],
deps = [

View File

@ -31,7 +31,7 @@ import (
// TestCheckReadyForTests specifically is concerned about the multi-node logic
// since single node checks are in TestReadyForTests.
func TestCheckReadyForTests(t *testing.T) {
// This is a duplicate definition of the constant in pkg/controller/service/service_controller.go
// This is a duplicate definition of the constant in pkg/controller/service/controller.go
labelNodeRoleMaster := "node-role.kubernetes.io/master"
fromVanillaNode := func(f func(*v1.Node)) v1.Node {