From acca7dc789a209405cf33877caa2e7278bc178a6 Mon Sep 17 00:00:00 2001 From: wzshiming Date: Mon, 30 Nov 2020 19:49:22 +0800 Subject: [PATCH] update pipe --- Dockerfile | 2 +- config/config.go | 22 +++++++++++++++------- go.mod | 2 +- go.sum | 6 +++--- 4 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 69f77c7..8e865d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ ENV CGO_ENABLED=0 RUN go install ./cmd/pipe-xds FROM alpine -COPY --from=pipeproxy/pipe:v0.4.13 /usr/local/bin/pipe /usr/local/bin/ +COPY --from=pipeproxy/pipe:v0.4.14 /usr/local/bin/pipe /usr/local/bin/ COPY --from=builder /go/bin/pipe-xds /usr/local/bin/ RUN apk add -U --no-cache curl iptables ip6tables WORKDIR /etc/istio/proxy diff --git a/config/config.go b/config/config.go index 67c42ba..9488076 100644 --- a/config/config.go +++ b/config/config.go @@ -297,13 +297,21 @@ var defaultServices = []bind.DefServiceConfig{ }, { Name: "_admin", - Def: bind.StreamServiceConfig{ - Listener: bind.ListenerStreamListenConfigConfig{ - Network: bind.ListenerStreamListenConfigListenerNetworkEnumEnumTCP, - Address: ":15000", - }, - Handler: bind.HTTP1StreamHandlerConfig{ - Handler: BuildAdminWithHTTPHandler(), + Def: bind.TagsServiceConfig{ + Tag: "admin", + Service: bind.StreamServiceConfig{ + Listener: bind.ListenerStreamListenConfigConfig{ + Network: bind.ListenerStreamListenConfigListenerNetworkEnumEnumTCP, + Address: ":15000", + }, + Handler: bind.HTTP1StreamHandlerConfig{ + Handler: bind.LogNetHTTPHandlerConfig{ + Output: bind.FileIoWriterConfig{ + Path: "/dev/stderr", + }, + Handler: BuildAdminWithHTTPHandler(), + }, + }, }, }, }, diff --git a/go.mod b/go.mod index 3e0c3cc..462ba2a 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ replace ( require ( github.com/envoyproxy/go-control-plane v0.9.8-0.20201019204000-12785f608982 github.com/golang/protobuf v1.4.3 - github.com/pipeproxy/pipe v0.4.13 + github.com/pipeproxy/pipe v0.4.14 github.com/spf13/cobra v1.1.1 github.com/wzshiming/gotype v0.6.3 github.com/wzshiming/notify v0.0.5 diff --git a/go.sum b/go.sum index 8124502..d8b1416 100644 --- a/go.sum +++ b/go.sum @@ -799,8 +799,8 @@ github.com/pierrec/lz4 v2.0.5+incompatible h1:2xWsjqPFWcplujydGg4WmhC/6fZqK42wMM github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= github.com/pierrec/lz4/v3 v3.3.2 h1:QTUOCbMNDbK4PYtkuHyOBd28C0UhPBw3T4OH4WpFDik= github.com/pierrec/lz4/v3 v3.3.2/go.mod h1:280XNCGS8jAcG++AHdd6SeWnzyJ1w9oow2vbORyey8Q= -github.com/pipeproxy/pipe v0.4.13 h1:WbrE1QQBBxMoQY6fWXxykWqENtNoRFondskzKnVR4jY= -github.com/pipeproxy/pipe v0.4.13/go.mod h1:oaL+stgVWsg21Og7EyWZDbY7ejyBM3kIUbcocRq6/8w= +github.com/pipeproxy/pipe v0.4.14 h1:0WngAXAiLi8OrefkfzXMAE44nfWpgtfxnkCwj7VRLOA= +github.com/pipeproxy/pipe v0.4.14/go.mod h1:fVvEupWbJ2ihcyWk/iSLYtBz/9wlZnshG8dWTCnlQ8k= github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1-0.20171018195549-f15c970de5b7/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= @@ -1006,7 +1006,7 @@ github.com/wzshiming/gotype v0.6.3/go.mod h1:7YULvVsDObRVX2U6iUcF5hixYvHFavLsTSI github.com/wzshiming/inject v0.1.0 h1:jIxBvu1uZu1hmTtlVT8KyBqXNKwWZoM7+AipVCLr2bE= github.com/wzshiming/inject v0.1.0/go.mod h1:TMwIIbf/euizgbEFavNdWAudPr7tO9kM0UOLxJJgJkY= github.com/wzshiming/lockfile v0.0.5/go.mod h1:vhWLDg1zBZYjo0UGrKCzCa8V+exb/6pq3H9yAulhpHM= -github.com/wzshiming/logger v0.0.0-20201120123225-10f5d60851cc/go.mod h1:ZrCaVKS2W7/ivqWwOXmW7GuOlTe3jC6RCDyP48cJCqc= +github.com/wzshiming/logger v0.0.0-20201130102445-8496ab0eee53/go.mod h1:ZrCaVKS2W7/ivqWwOXmW7GuOlTe3jC6RCDyP48cJCqc= github.com/wzshiming/namecase v0.2.0/go.mod h1:FJT9Q8a289dtinO3AJUDKqRP9UQzq9UxpWDevdDVvYA= github.com/wzshiming/notify v0.0.5 h1:c/S99kE2S1jNt74hg5bpmM0DFATEHNg5NDgl8sYKAfo= github.com/wzshiming/notify v0.0.5/go.mod h1:SFhsQKZJznzsDcj/Qfo9A65k5IRcpUrpgbLRzZEa/DI=