connect: Remove envoy_version from bootstrap template (#11215)
This commit is contained in:
parent
2cd80e5f66
commit
9e949abe3e
|
@ -96,10 +96,6 @@ type BootstrapTplArgs struct {
|
||||||
// Datacenter is the datacenter where the proxy service instance is registered.
|
// Datacenter is the datacenter where the proxy service instance is registered.
|
||||||
Datacenter string
|
Datacenter string
|
||||||
|
|
||||||
// EnvoyVersion is the envoy version, which is necessary to generate the
|
|
||||||
// correct configuration.
|
|
||||||
EnvoyVersion string
|
|
||||||
|
|
||||||
// PrometheusBackendPort will configure a "prometheus_backend" cluster which
|
// PrometheusBackendPort will configure a "prometheus_backend" cluster which
|
||||||
// envoy_prometheus_bind_addr will point to.
|
// envoy_prometheus_bind_addr will point to.
|
||||||
PrometheusBackendPort string
|
PrometheusBackendPort string
|
||||||
|
@ -145,8 +141,7 @@ const bootstrapTemplate = `{
|
||||||
"id": "{{ .ProxyID }}",
|
"id": "{{ .ProxyID }}",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "{{if ne .Namespace ""}}{{ .Namespace }}{{else}}default{{end}}",
|
"namespace": "{{if ne .Namespace ""}}{{ .Namespace }}{{else}}default{{end}}",
|
||||||
"partition": "{{if ne .Partition ""}}{{ .Partition }}{{else}}default{{end}}",
|
"partition": "{{if ne .Partition ""}}{{ .Partition }}{{else}}default{{end}}"
|
||||||
"envoy_version": "{{ .EnvoyVersion }}"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -122,8 +122,12 @@ func (c *cmd) init() {
|
||||||
"Set the agent's gRPC address and port (in http(s)://host:port format). "+
|
"Set the agent's gRPC address and port (in http(s)://host:port format). "+
|
||||||
"Alternatively, you can specify CONSUL_GRPC_ADDR in ENV.")
|
"Alternatively, you can specify CONSUL_GRPC_ADDR in ENV.")
|
||||||
|
|
||||||
|
// Deprecated, no longer needed, keeping it around to not break back compat
|
||||||
c.flags.StringVar(&c.envoyVersion, "envoy-version", defaultEnvoyVersion,
|
c.flags.StringVar(&c.envoyVersion, "envoy-version", defaultEnvoyVersion,
|
||||||
"Sets the envoy-version that the envoy binary has.")
|
"This is a legacy flag that is currently not used but was formerly used to set the "+
|
||||||
|
"version for the envoy binary that gets invoked by Consul. This is no longer "+
|
||||||
|
"necessary as Consul will invoke the binary at a path set by -envoy-binary "+
|
||||||
|
"or whichever envoy binary it finds in $PATH")
|
||||||
|
|
||||||
c.flags.BoolVar(&c.register, "register", false,
|
c.flags.BoolVar(&c.register, "register", false,
|
||||||
"Register a new gateway service before configuring and starting Envoy")
|
"Register a new gateway service before configuring and starting Envoy")
|
||||||
|
@ -483,7 +487,6 @@ func (c *cmd) templateArgs() (*BootstrapTplArgs, error) {
|
||||||
LocalAgentClusterName: xds.LocalAgentClusterName,
|
LocalAgentClusterName: xds.LocalAgentClusterName,
|
||||||
Namespace: httpCfg.Namespace,
|
Namespace: httpCfg.Namespace,
|
||||||
Partition: httpCfg.Partition,
|
Partition: httpCfg.Partition,
|
||||||
EnvoyVersion: c.envoyVersion,
|
|
||||||
Datacenter: httpCfg.Datacenter,
|
Datacenter: httpCfg.Datacenter,
|
||||||
PrometheusBackendPort: c.prometheusBackendPort,
|
PrometheusBackendPort: c.prometheusBackendPort,
|
||||||
PrometheusScrapePath: c.prometheusScrapePath,
|
PrometheusScrapePath: c.prometheusScrapePath,
|
||||||
|
|
|
@ -134,7 +134,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "defaults",
|
Name: "defaults",
|
||||||
Flags: []string{"-proxy-id", "test-proxy"},
|
Flags: []string{"-proxy-id", "test-proxy"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -163,7 +162,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
"envoy_prometheus_bind_addr": "0.0.0.0:9000",
|
"envoy_prometheus_bind_addr": "0.0.0.0:9000",
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -186,7 +184,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy",
|
Flags: []string{"-proxy-id", "test-proxy",
|
||||||
"-token", "c9a52720-bf6c-4aa6-b8bc-66881a5ade95"},
|
"-token", "c9a52720-bf6c-4aa6-b8bc-66881a5ade95"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -211,7 +208,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
"CONSUL_HTTP_TOKEN=c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
"CONSUL_HTTP_TOKEN=c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -238,7 +234,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
"token.txt": "c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
"token.txt": "c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -266,7 +261,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
"token.txt": "c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
"token.txt": "c9a52720-bf6c-4aa6-b8bc-66881a5ade95",
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -289,7 +283,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy",
|
Flags: []string{"-proxy-id", "test-proxy",
|
||||||
"-grpc-addr", "localhost:9999"},
|
"-grpc-addr", "localhost:9999"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -316,7 +309,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
"CONSUL_GRPC_ADDR=localhost:9999",
|
"CONSUL_GRPC_ADDR=localhost:9999",
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -341,7 +333,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy",
|
Flags: []string{"-proxy-id", "test-proxy",
|
||||||
"-grpc-addr", "unix:///var/run/consul.sock"},
|
"-grpc-addr", "unix:///var/run/consul.sock"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -362,7 +353,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy"},
|
Flags: []string{"-proxy-id", "test-proxy"},
|
||||||
XDSPort: 9999,
|
XDSPort: 9999,
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -388,7 +378,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
XDSPort: 9999,
|
XDSPort: 9999,
|
||||||
AgentSelf110: true,
|
AgentSelf110: true,
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -412,7 +401,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "access-log-path",
|
Name: "access-log-path",
|
||||||
Flags: []string{"-proxy-id", "test-proxy", "-admin-access-log-path", "/some/path/access.log"},
|
Flags: []string{"-proxy-id", "test-proxy", "-admin-access-log-path", "/some/path/access.log"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -436,7 +424,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "missing-ca-file",
|
Name: "missing-ca-file",
|
||||||
Flags: []string{"-proxy-id", "test-proxy", "-ca-file", "some/path"},
|
Flags: []string{"-proxy-id", "test-proxy", "-ca-file", "some/path"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -458,7 +445,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy", "-ca-file", "../../../test/ca/root.cer"},
|
Flags: []string{"-proxy-id", "test-proxy", "-ca-file", "../../../test/ca/root.cer"},
|
||||||
Env: []string{"CONSUL_HTTP_SSL=1"},
|
Env: []string{"CONSUL_HTTP_SSL=1"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -484,7 +470,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "missing-ca-path",
|
Name: "missing-ca-path",
|
||||||
Flags: []string{"-proxy-id", "test-proxy", "-ca-path", "some/path"},
|
Flags: []string{"-proxy-id", "test-proxy", "-ca-path", "some/path"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -506,7 +491,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy", "-ca-path", "../../../test/ca_path/"},
|
Flags: []string{"-proxy-id", "test-proxy", "-ca-path", "../../../test/ca_path/"},
|
||||||
Env: []string{"CONSUL_HTTP_SSL=1"},
|
Env: []string{"CONSUL_HTTP_SSL=1"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -554,7 +538,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -592,7 +575,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -635,7 +617,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
} , { "name": "fake_sink_2" }`,
|
} , { "name": "fake_sink_2" }`,
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -665,7 +646,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -725,7 +705,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
}`,
|
}`,
|
||||||
},
|
},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -747,7 +726,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Flags: []string{"-proxy-id", "test-proxy"},
|
Flags: []string{"-proxy-id", "test-proxy"},
|
||||||
Env: []string{"CONSUL_HTTP_ADDR=https://127.0.0.1:8888"},
|
Env: []string{"CONSUL_HTTP_ADDR=https://127.0.0.1:8888"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "test-proxy",
|
ProxyCluster: "test-proxy",
|
||||||
ProxyID: "test-proxy",
|
ProxyID: "test-proxy",
|
||||||
// We don't know this til after the lookup so it will be empty in the
|
// We don't know this til after the lookup so it will be empty in the
|
||||||
|
@ -772,7 +750,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "ingress-gateway",
|
Name: "ingress-gateway",
|
||||||
Flags: []string{"-proxy-id", "ingress-gateway-1", "-gateway", "ingress"},
|
Flags: []string{"-proxy-id", "ingress-gateway-1", "-gateway", "ingress"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "ingress-gateway",
|
ProxyCluster: "ingress-gateway",
|
||||||
ProxyID: "ingress-gateway-1",
|
ProxyID: "ingress-gateway-1",
|
||||||
ProxySourceService: "ingress-gateway",
|
ProxySourceService: "ingress-gateway",
|
||||||
|
@ -791,7 +768,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "ingress-gateway-address-specified",
|
Name: "ingress-gateway-address-specified",
|
||||||
Flags: []string{"-proxy-id", "ingress-gateway", "-gateway", "ingress", "-address", "1.2.3.4:7777"},
|
Flags: []string{"-proxy-id", "ingress-gateway", "-gateway", "ingress", "-address", "1.2.3.4:7777"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "ingress-gateway",
|
ProxyCluster: "ingress-gateway",
|
||||||
ProxyID: "ingress-gateway",
|
ProxyID: "ingress-gateway",
|
||||||
ProxySourceService: "ingress-gateway",
|
ProxySourceService: "ingress-gateway",
|
||||||
|
@ -810,7 +786,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "ingress-gateway-register-with-service-without-proxy-id",
|
Name: "ingress-gateway-register-with-service-without-proxy-id",
|
||||||
Flags: []string{"-gateway", "ingress", "-register", "-service", "my-gateway", "-address", "127.0.0.1:7777"},
|
Flags: []string{"-gateway", "ingress", "-register", "-service", "my-gateway", "-address", "127.0.0.1:7777"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "my-gateway",
|
ProxyCluster: "my-gateway",
|
||||||
ProxyID: "my-gateway",
|
ProxyID: "my-gateway",
|
||||||
ProxySourceService: "my-gateway",
|
ProxySourceService: "my-gateway",
|
||||||
|
@ -829,7 +804,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "ingress-gateway-register-with-service-and-proxy-id",
|
Name: "ingress-gateway-register-with-service-and-proxy-id",
|
||||||
Flags: []string{"-gateway", "ingress", "-register", "-service", "my-gateway", "-proxy-id", "my-gateway-123", "-address", "127.0.0.1:7777"},
|
Flags: []string{"-gateway", "ingress", "-register", "-service", "my-gateway", "-proxy-id", "my-gateway-123", "-address", "127.0.0.1:7777"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "my-gateway",
|
ProxyCluster: "my-gateway",
|
||||||
ProxyID: "my-gateway-123",
|
ProxyID: "my-gateway-123",
|
||||||
ProxySourceService: "my-gateway",
|
ProxySourceService: "my-gateway",
|
||||||
|
@ -848,7 +822,6 @@ func TestGenerateConfig(t *testing.T) {
|
||||||
Name: "ingress-gateway-no-auto-register",
|
Name: "ingress-gateway-no-auto-register",
|
||||||
Flags: []string{"-gateway", "ingress", "-address", "127.0.0.1:7777"},
|
Flags: []string{"-gateway", "ingress", "-address", "127.0.0.1:7777"},
|
||||||
WantArgs: BootstrapTplArgs{
|
WantArgs: BootstrapTplArgs{
|
||||||
EnvoyVersion: defaultEnvoyVersion,
|
|
||||||
ProxyCluster: "ingress-gateway",
|
ProxyCluster: "ingress-gateway",
|
||||||
ProxyID: "ingress-gateway",
|
ProxyID: "ingress-gateway",
|
||||||
ProxySourceService: "ingress-gateway",
|
ProxySourceService: "ingress-gateway",
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "ingress-gateway",
|
"id": "ingress-gateway",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "ingress-gateway",
|
"id": "ingress-gateway",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "my-gateway-123",
|
"id": "my-gateway-123",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "my-gateway",
|
"id": "my-gateway",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "ingress-gateway-1",
|
"id": "ingress-gateway-1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
"id": "test-proxy",
|
"id": "test-proxy",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"namespace": "default",
|
"namespace": "default",
|
||||||
"partition": "default",
|
"partition": "default"
|
||||||
"envoy_version": "1.19.1"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"static_resources": {
|
"static_resources": {
|
||||||
|
|
Loading…
Reference in New Issue