Skip to content

Commit

Permalink
Remove static base runtime layer from bootstrap (#6063)
Browse files Browse the repository at this point in the history
Signed-off-by: lubronzhan <[email protected]>
Co-authored-by: lubronzhan <[email protected]>
  • Loading branch information
lubronzhan and lubronzhan authored Jan 10, 2024
1 parent 9e8e129 commit d8931d4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 76 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/6063-lubronzhan-small.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove static base runtime layer from bootstrap
6 changes: 0 additions & 6 deletions internal/envoy/v3/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,6 @@ func bootstrapConfig(c *envoy.BootstrapConfig) *envoy_bootstrap_v3.Bootstrap {
bootstrap := &envoy_bootstrap_v3.Bootstrap{
LayeredRuntime: &envoy_bootstrap_v3.LayeredRuntime{
Layers: []*envoy_bootstrap_v3.RuntimeLayer{
{
Name: "base",
LayerSpecifier: &envoy_bootstrap_v3.RuntimeLayer_StaticLayer{
StaticLayer: baseRuntimeLayer(),
},
},
{
Name: "dynamic",
LayerSpecifier: &envoy_bootstrap_v3.RuntimeLayer_RtdsLayer_{
Expand Down
70 changes: 0 additions & 70 deletions internal/envoy/v3/bootstrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -368,13 +361,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -554,13 +540,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -741,13 +720,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -928,13 +900,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -1115,13 +1080,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -1304,13 +1262,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -1527,13 +1478,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -1748,13 +1692,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down Expand Up @@ -1964,13 +1901,6 @@ func TestBootstrap(t *testing.T) {
},
"layered_runtime": {
"layers": [
{
"name": "base",
"static_layer": {
"re2.max_program_size.error_level": 1048576,
"re2.max_program_size.warn_level": 1000
}
},
{
"name": "dynamic",
"rtds_layer": {
Expand Down

0 comments on commit d8931d4

Please sign in to comment.