Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c421b0b

Browse files
authored
remove http injection endpoint (istio#2209)
1 parent 6706c9c commit c421b0b

File tree

6 files changed

+0
-285
lines changed

6 files changed

+0
-285
lines changed

pilot/cmd/pilot-discovery/server/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ go_library(
3030
"@com_github_golang_glog//:go_default_library",
3131
"@com_github_golang_protobuf//ptypes/duration:go_default_library",
3232
"@com_github_hashicorp_go_multierror//:go_default_library",
33-
"@com_github_prometheus_client_golang//prometheus:go_default_library",
3433
"@com_github_prometheus_client_golang//prometheus/promhttp:go_default_library",
3534
"@io_istio_api//mesh/v1alpha1:go_default_library",
3635
"@io_k8s_client_go//kubernetes:go_default_library",

pilot/cmd/sidecar-initializer/main.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ func getRootCmd() *cobra.Command {
6565

6666
stop := make(chan struct{})
6767

68-
if flags.port != 0 {
69-
server := inject.NewHTTPServer(flags.port, config)
70-
go server.Run(stop)
71-
}
7268
go initializer.Run(stop)
7369

7470
cmd.WaitSignal(stop)
@@ -84,8 +80,6 @@ func getRootCmd() *cobra.Command {
8480
"Name of initializer configuration ConfigMap")
8581
rootCmd.PersistentFlags().StringVar(&flags.namespace, "namespace", v1.NamespaceDefault, // TODO istio-system?
8682
"Namespace of initializer configuration ConfigMap")
87-
rootCmd.PersistentFlags().IntVar(&flags.port, "port", 8083,
88-
"HTTP-based initializer service port. Zero value disables HTTP endpoint")
8983

9084
cmd.AddFlags(rootCmd)
9185

pilot/platform/kube/inject/BUILD

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ go_library(
44
name = "go_default_library",
55
srcs = [
66
"configmap.go",
7-
"http.go",
87
"initializer.go",
98
"inject.go",
109
],
@@ -14,7 +13,6 @@ go_library(
1413
"//pilot/proxy:go_default_library",
1514
"//pilot/tools/version:go_default_library",
1615
"@com_github_davecgh_go_spew//spew:go_default_library",
17-
"@com_github_emicklei_go_restful//:go_default_library",
1816
"@com_github_ghodss_yaml//:go_default_library",
1917
"@com_github_golang_glog//:go_default_library",
2018
"@com_github_golang_protobuf//ptypes:go_default_library",
@@ -47,7 +45,6 @@ go_test(
4745
name = "go_default_test",
4846
size = "small",
4947
srcs = [
50-
"http_test.go",
5148
"initializer_test.go",
5249
"inject_test.go",
5350
],
@@ -58,7 +55,6 @@ go_test(
5855
"//pilot/proxy:go_default_library",
5956
"//pilot/test/util:go_default_library",
6057
"//pilot/tools/version:go_default_library",
61-
"@com_github_emicklei_go_restful//:go_default_library",
6258
"@com_github_ghodss_yaml//:go_default_library",
6359
"@io_istio_api//mesh/v1alpha1:go_default_library",
6460
"@io_k8s_api//core/v1:go_default_library",

pilot/platform/kube/inject/http.go

Lines changed: 0 additions & 108 deletions
This file was deleted.

pilot/platform/kube/inject/http_test.go

Lines changed: 0 additions & 165 deletions
This file was deleted.

pilot/test/integration/testdata/initializer.yaml.tmpl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ spec:
3232
image: {{.Hub}}/sidecar_initializer:{{.Tag}}
3333
imagePullPolicy: IfNotPresent
3434
args:
35-
- --port=8083
3635
- --namespace={{.IstioNamespace}}
3736
- -v=2
3837
volumeMounts:

0 commit comments

Comments
 (0)