You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/ext-proc/main.go
+49-12
Original file line number
Diff line number
Diff line change
@@ -29,20 +29,48 @@ import (
29
29
)
30
30
31
31
var (
32
-
port=flag.Int("port", 9002, "gRPC port")
33
-
targetPodHeader=flag.String("targetPodHeader", "target-pod", "the header key for the target pod address to instruct Envoy to send the request to. This must match Envoy configuration.")
34
-
serverPoolName=flag.String("serverPoolName", "", "Name of the serverPool this Endpoint Picker is associated with.")
35
-
serviceName=flag.String("serviceName", "", "Name of the service that will be used to read the endpointslices from")
36
-
namespace=flag.String("namespace", "default", "The Namespace that the server pool should exist in.")
37
-
zone=flag.String("zone", "", "The zone that this instance is created in. Will be passed to the corresponding endpointSlice. ")
38
-
refreshPodsInterval=flag.Duration("refreshPodsInterval", 10*time.Second, "interval to refresh pods")
39
-
refreshMetricsInterval=flag.Duration("refreshMetricsInterval", 50*time.Millisecond, "interval to refresh metrics")
40
-
scheme=runtime.NewScheme()
32
+
port=flag.Int(
33
+
"port",
34
+
9002,
35
+
"gRPC port")
36
+
targetPodHeader=flag.String(
37
+
"targetPodHeader",
38
+
"target-pod",
39
+
"Header key used by Envoy to route to the appropriate pod. This must match Envoy configuration.")
40
+
serverPoolName=flag.String(
41
+
"serverPoolName",
42
+
"",
43
+
"Name of the serverPool this Endpoint Picker is associated with.")
44
+
serviceName=flag.String(
45
+
"serviceName",
46
+
"",
47
+
"Name of the service that will be used to read the endpointslices from")
48
+
namespace=flag.String(
49
+
"namespace",
50
+
"default",
51
+
"The Namespace that the server pool should exist in.")
52
+
zone=flag.String(
53
+
"zone",
54
+
"",
55
+
"The zone that this instance is created in. Will be passed to the corresponding endpointSlice. ")
0 commit comments