-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge release/v1.14 in to release/v2.0 #3862
Closed
Closed
Changes from all commits
Commits
Show all changes
200 commits
Select commit
Hold shift + click to select a range
3431032
switch to using shared charts repo (#3537)
acookin 790846e
Update for v1.13.9
acookin 2af1004
tcp mapping fix
acookin 5384854
changelog update
acookin 13c52b0
Update for v1.13.9 (#3582)
acookin 148c0ce
Updating and manifest images for v1.13.9 (#3583)
acookin 8343d52
Pytest runs on clean checkout and on OSX (#3585) (#3592)
acookin e807e1b
dont overwrite 2.0 manifests (#3589)
acookin 0d9985a
fixes for 1.13 releng scripts (#3584)
acookin 3c10974
set go version on build (#3636)
acookin 2fd606d
Update for v1.13.10
0c90146
promote to passed works better
acookin e07109e
Allow "make deploy" to work.
7115d19
Basic Ambex visibility: save a certain number of Ambex snapshots to d…
6f072ef
CHANGELOG
4bfad6f
Support hotfix tags in CI
70577ca
Fix the docker tag for hotfixes.
8fc4b51
Note Edge Stack Consul certificate-rotation logging changes in the CH…
cd94125
cors origins roundtrip fix (#3612)
acookin b2a2234
added timeout to the mapping->docs CRD
aidanhahn e07dc75
add config generation test
aidanhahn 3c53df7
Exclude hotfix tags when looking at versions.
8da6ca1
fix pytest schema checks
aidanhahn 4f4ac2b
Allow switching the ambex ratelimiter off.
25eede6
CHANGELOG
9a94d25
Merge pull request #3631 from emissary-ingress/flynn/dev/ratelimit-sw…
aidanhahn 444a2b1
add changelog notes for devportal timeout changes
aidanhahn 6136606
Merge branch 'rel/v1.13.10' of github.com:emissary-ingress/emissary i…
aidanhahn 405477b
Update CHANGELOG for 1.13.10
17c6bb2
Another minor CHANGELOG tweak
e0ccdd6
Updating and manifest images for v1.13.10
aidanhahn 85d4b98
Update for v1.13.10
aidanhahn c2dc110
Merge pull request #3605 from emissary-ingress/rel/v1.13.10
aidanhahn 9664ae8
Merge pull request #3643 from emissary-ingress/aidan/v1.13.10/chart-i…
aidanhahn 4920c99
Merge pull request #3642 from emissary-ingress/aidan/v1.13.10/changel…
aidanhahn 903790b
Update quote service yaml
Alice-Lilith 95fdd23
pkg/busy: Clean up
LukeShu 2f1b0ef
pkg/busy: Have the logger include sub-second precision in the timestamps
LukeShu db42561
pkg/busy: Be clearer that not passing the Context correctly is a bug
LukeShu 51f1efe
Merge pull request #3648 from emissary-ingress/lukeshu/dlog-fixup
kflynn e448c45
hotfix yaml agent rbac: add rbac to yaml (#3651)
acookin e537f29
Reorder imports.
884aef4
Add parse_bool
5fe0ee7
Support ALLOW_UNTRACKED environment variable when starting a new vers…
8208c96
Update reviewers when starting a new release.
007f394
Merge pull request #3652 from emissary-ingress/flynn/dev/allow-untracked
kflynn cfad225
Update for v1.13.11
3e74a7f
Merge pull request #3653 from emissary-ingress/flynn/v1.13.11/start-r…
kflynn 09a6377
CHANGELOG for logging tweaks.
c4b766f
Merge pull request #3654 from emissary-ingress/flynn/dev/logging-CHAN…
kflynn 162b11b
Add an AMBASSADOR_GRPC_METRICS_SINK environment variable and an examp…
dedc636
make target to promote hotfix build (#3655)
acookin 2cbc086
Clean up indentation.
342cebb
Consistent ;\
e671060
Fix missing `
bda8745
Use $$( ) instead of `` (it's slightly easier to catch a missing clos…
df1fb86
Missing semicolon
22ea26d
Drop excess ;
d3dc8b0
Allow overriding the hotfix commitish using HOTFIX_COMMIT. Fix a coup…
0d0db46
Fix push tag.
1482c02
Fix AWS secret key assignment.
b00210b
Merge pull request #3656 from emissary-ingress/rhs/grpc-metrics-sink
456b3b2
Merge pull request #3659 from emissary-ingress/flynn/dev/hotfix-tweaks
kflynn 6dafc84
Merge pull request #3646 from emissary-ingress/alicewasko/quote-manif…
kflynn 113f58b
Add progressDeadlines to chart
Alice-Lilith 40cd13c
update changelog
Alice-Lilith 012dee6
freeze orjson to version 3.6.0
aidanhahn 72cbedc
Merge pull request #3663 from emissary-ingress/freeze-orjson-1.13
kflynn 77bff5c
Remove duplicate changelog verison
Alice-Lilith 21c0518
klogv2 for 1.13
njayp ae751de
Merge pull request #3672 from emissary-ingress/njayp/klog1.13
njayp 2433b3f
Merge pull request #3660 from emissary-ingress/alicewasko/1.13-chart-…
Alice-Lilith 4ecb3ed
1.14.0 release branch
acookin a72f9f5
fix ci to run on emissary-private
acookin c01fcf5
update envoy commit
aidanhahn 4a6e61f
dont push manifests if IS_PRIVATE
acookin d18f43e
updates for embargoed
acookin 6420cab
envoy v3 should be default
acookin 8bebe07
run make generate
aidanhahn c466177
dont push manifests if IS_PRIVATE (#14)
acookin c7d8ae1
Merge pull request #15 from datawire/acookin/1.14/envoyv3
aidanhahn ddcbc5d
gotest fix (#16)
acookin c1b284c
run make generate
aidanhahn 43b0d91
remove tests that were commented out on master
aidanhahn a192e36
Merge pull request #17 from datawire/aidanhahn/rel/v1.14.0
aidanhahn e8a9a48
enable deprecated apis
acookin 2d430be
pytest corrections (#18)
aidanhahn a72cf2a
gzip fix (#19)
acookin f34f941
invalidate v3 cache
acookin 183236b
pytest envoy v2 test fixes (#21)
acookin 5cf7440
envoy v2 fixes maybz (#22)
acookin d15d3b4
reformat gold test config json
aidanhahn 3ac4645
explicitly allow User-Agent and X-Forwarded-Proto headers in kat test
aidanhahn f2680af
revert extauth test change
aidanhahn 178082c
Merge pull request #23 from datawire/aidanhahn/rel/v1.14.0
aidanhahn 972ec38
also push rc for emissary privaet
acookin ae52d8b
allow chunked length (#24)
acookin 6af849c
update pf gomod
acookin 38c7f8f
v3 api needs ignore_case specified for ext_authz headers
aidanhahn 7aa61e0
yank deprecated config option
aidanhahn 081c69f
update gold tests
aidanhahn 52ff9fa
update t_chunked_length test
aidanhahn 1719a29
go mod tidy
aidanhahn 0c895f5
Merge pull request #25 from datawire/aidanhahn/rel/v1.14.0
aidanhahn 7f132a9
changelog updates for 1.14.0
acookin 89ec5f4
Update for v1.14.0
aidanhahn 04f0d43
Merge pull request #3710 from emissary-ingress/acookin/1.14/changelog
aidanhahn e2a34d6
add .z version to envoy version listed in changelog
aidanhahn a5bb115
Merge pull request #3711 from emissary-ingress/aidan/v1.14.0/changelo…
aidanhahn c2b9004
fix bad test in makefile
aidanhahn b9f2be5
Merge branch 'rel/v1.14.0' of github.com:emissary-ingress/emissary in…
aidanhahn d206224
fix another bad makefile test
aidanhahn d8ce92d
Updating and manifest images for v1.14.0
aidanhahn e82e956
Merge pull request #3712 from emissary-ingress/aidan/v1.14.0/chart-im…
aidanhahn 8ec0548
fix yet another broken makefile test
aidanhahn 73479e0
Merge branch 'rel/v1.14.0' of github.com:emissary-ingress/emissary in…
aidanhahn 465b346
Merge pull request #3702 from emissary-ingress/rel/v1.14.0
aidanhahn 0c6f955
update aes version in chart (#3713)
acookin 205aea6
Merge pull request #12 from datawire/rel/v1.14.0
aidanhahn a34a153
Update for v1.14.1
aidanhahn 2929164
Merge pull request #3714 from emissary-ingress/aidan/v1.14.1/start-re…
aidanhahn 83a8da9
fix bad test in makefile
aidanhahn 2f0c60b
Update for v1.14.0
aidanhahn 48625d7
changelog updates for 1.14.0
acookin 816744e
add .z version to envoy version listed in changelog
aidanhahn 73ea909
fix another bad makefile test
aidanhahn 37b9bd7
fix yet another broken makefile test
aidanhahn 253be1b
Updating and manifest images for v1.14.0
aidanhahn 66914bc
update aes version in chart (#3713)
acookin b2dd18c
Merge branch 'rel/v1.14.1' of github.com:datawire/emissary-private in…
aidanhahn 7c2d0f0
Update for v1.14.1
aidanhahn 866b125
Merge branch 'rel/v1.14.1' of github.com:datawire/emissary-private in…
aidanhahn 2a57242
bump envoy
aidanhahn 95a3104
Merge pull request #29 from datawire/aidanhahn/envoy-1.17-patched
aidanhahn 1be09b8
update changelog
aidanhahn 1babddf
fix flake
aidanhahn fec8d5d
patch IS_PRIVATE
acookin 9f18b45
Update for v1.14.1
aidanhahn 57e17dc
update changelog to remove superfluous patch note
aidanhahn b050a5a
Merge pull request #3728 from emissary-ingress/1.14.1-changelog-edit
aidanhahn b2d22cf
Merge pull request #3727 from emissary-ingress/aidan/v1.14.1/changelo…
aidanhahn f2e0f60
Updating and manifest images for v1.14.1
aidanhahn fd1f56b
Merge pull request #3715 from emissary-ingress/rel/v1.14.1
aidanhahn c7d33d5
Merge pull request #3729 from emissary-ingress/aidan/v1.14.1/chart-im…
aidanhahn c0e138a
allow configuring dns_type
Alice-Lilith ef1bbf8
lint mapping types
Alice-Lilith c6ac366
run make generate
acookin 8f85745
Merge pull request #3734 from emissary-ingress/aidanhahn/fix-flake-1.…
aidanhahn 1521139
Add tests
Alice-Lilith a438c42
add crd for devportal
Alice-Lilith a046a32
re-create pr for 1.14
Alice-Lilith 1522c41
make generate
Alice-Lilith 77694df
update crd type
Alice-Lilith 009ca61
generate deepcopy
Alice-Lilith f6380cc
update line ending
Alice-Lilith 0d17252
Reformat comments to trigger another CI run.
bd05686
add newline
Alice-Lilith 256d559
kick the build
Alice-Lilith 84bdbd5
Merge pull request #3788 from emissary-ingress/alicewasko/buffer-limi…
kflynn c6c310b
merge 1.14 changes
Alice-Lilith d1c726b
config respecting dns record ttl
Alice-Lilith fd91830
Merge pull request #3731 from emissary-ingress/alicewasko/configure-d…
kflynn 6a950b3
merge changes from upstream
Alice-Lilith 6abd880
set unset variable
Alice-Lilith 1c2282d
Merge pull request #3807 from emissary-ingress/alicewasko/follow-dns-ttl
kflynn eba801f
Merge pull request #3786 from emissary-ingress/alicewasko/devportal-s…
kflynn d483f3f
Add new features to the changelog
Alice-Lilith 17ec502
change date in changelog
Alice-Lilith f8be96c
change the other date
Alice-Lilith 4294fbe
Merge pull request #3819 from emissary-ingress/alicewasko/1.14-change…
aidanhahn cdc4a07
Updating and manifest images for v1.13.9 (#3583)
acookin 2ba317d
set go version on build (#3636)
acookin cf0f015
Basic Ambex visibility: save a certain number of Ambex snapshots to d…
6d88fe8
cors origins roundtrip fix (#3612)
acookin eb75bbf
added timeout to the mapping->docs CRD
aidanhahn 9c81547
add config generation test
aidanhahn 14eaf6e
fix pytest schema checks
aidanhahn 4643ede
Updating and manifest images for v1.13.10
aidanhahn 8b3daa5
Reorder imports.
daeecdd
Add parse_bool
82681a4
Support ALLOW_UNTRACKED environment variable when starting a new vers…
e0ba771
Add an AMBASSADOR_GRPC_METRICS_SINK environment variable and an examp…
1f49b1c
update changelog
Alice-Lilith 47a8eae
Remove duplicate changelog verison
Alice-Lilith c9605cc
gzip fix (#19)
acookin 528ef73
fix bad test in makefile
aidanhahn 0fc9637
fix another bad makefile test
aidanhahn fe2de28
fix yet another broken makefile test
aidanhahn 3f2c631
Updating and manifest images for v1.14.0
aidanhahn 6d67258
update aes version in chart (#3713)
acookin 90c9cdb
Updating and manifest images for v1.14.1
aidanhahn 01de27d
Add tests
Alice-Lilith 5912f2c
update line ending
Alice-Lilith 81bab16
add newline
Alice-Lilith 4951b7e
re-create pr for 1.14
Alice-Lilith 89192a3
Reformat comments to trigger another CI run.
2542626
config respecting dns record ttl
Alice-Lilith 499ef62
set unset variable
Alice-Lilith 9bbbe0b
Merge commit '4294fbe6528af6c37cf8332f1437186b7a5c73ce' into lukeshu/…
LukeShu a80c71d
These tests need to be switched to v3alpha1.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
package entrypoint_test | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/datawire/ambassador/v2/cmd/entrypoint" | ||
bootstrap "github.com/datawire/ambassador/v2/pkg/api/envoy/config/bootstrap/v3" | ||
v3listener "github.com/datawire/ambassador/v2/pkg/api/envoy/config/listener/v3" | ||
route "github.com/datawire/ambassador/v2/pkg/api/envoy/config/route/v3" | ||
http "github.com/datawire/ambassador/v2/pkg/api/envoy/extensions/filters/network/http_connection_manager/v3" | ||
"github.com/datawire/ambassador/v2/pkg/envoy-control-plane/resource/v3" | ||
"github.com/datawire/ambassador/v2/pkg/envoy-control-plane/wellknown" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestMappingCORSOriginsSlice(t *testing.T) { | ||
f := entrypoint.RunFake(t, entrypoint.FakeConfig{EnvoyConfig: true}, nil) | ||
f.UpsertYAML(` | ||
--- | ||
apiVersion: getambassador.io/v3alpha1 | ||
kind: Listener | ||
metadata: | ||
name: ambassador-listener-8080 | ||
namespace: default | ||
spec: | ||
port: 8080 | ||
protocol: HTTP | ||
securityModel: XFP | ||
hostBinding: | ||
namespace: | ||
from: ALL | ||
--- | ||
apiVersion: getambassador.io/v3alpha1 | ||
kind: Host | ||
metadata: | ||
name: test-host | ||
namespace: default | ||
spec: | ||
selector: | ||
matchLabels: | ||
host: minimal | ||
--- | ||
apiVersion: getambassador.io/v3alpha1 | ||
kind: Mapping | ||
metadata: | ||
name: foo | ||
namespace: default | ||
labels: | ||
host: minimal | ||
spec: | ||
prefix: /foo | ||
service: foo.default | ||
cors: | ||
origins: | ||
- foo.example.com | ||
- bar.example.com | ||
`) | ||
f.Upsert(makeService("default", "foo")) | ||
f.Flush() | ||
snap := f.GetSnapshot(HasMapping("default", "foo")) | ||
assert.NotNil(t, snap) | ||
|
||
config := f.GetEnvoyConfig(func(config *bootstrap.Bootstrap) bool { | ||
return FindCluster(config, ClusterNameContains("cluster_foo_default_default")) != nil | ||
}) | ||
|
||
listener := findListener(config, func(l *v3listener.Listener) bool { | ||
return l.Name == "ambassador-listener-8080" | ||
}) | ||
|
||
assert.NotNil(t, listener) | ||
|
||
routeAction := findVirtualHostRoute(listener, func(r *route.RouteAction) bool { | ||
return r.GetCluster() == "cluster_foo_default_default" | ||
}) | ||
assert.NotNil(t, routeAction) | ||
assert.NotNil(t, routeAction.Cors) | ||
assert.Equal(t, len(routeAction.Cors.AllowOriginStringMatch), 2) | ||
for _, m := range routeAction.Cors.AllowOriginStringMatch { | ||
assert.Contains(t, []string{"bar.example.com", "foo.example.com"}, m.GetExact()) | ||
|
||
} | ||
} | ||
|
||
func findVirtualHostRoute(listener *v3listener.Listener, predicate func(*route.RouteAction) bool) *route.RouteAction { | ||
for _, fc := range listener.FilterChains { | ||
for _, filter := range fc.Filters { | ||
if filter.Name != wellknown.HTTPConnectionManager { | ||
continue | ||
} | ||
hcm := resource.GetHTTPConnectionManager(filter) | ||
if hcm != nil { | ||
rs, ok := hcm.RouteSpecifier.(*http.HttpConnectionManager_RouteConfig) | ||
if ok { | ||
for _, vh := range rs.RouteConfig.VirtualHosts { | ||
for _, vhr := range vh.Routes { | ||
routeAction, ok := vhr.Action.(*route.Route_Route) | ||
if ok { | ||
if predicate(routeAction.Route) { | ||
return routeAction.Route | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
} | ||
return nil | ||
|
||
} | ||
|
||
func findListener(envoyConfig *bootstrap.Bootstrap, predicate func(*v3listener.Listener) bool) *v3listener.Listener { | ||
for _, listener := range envoyConfig.StaticResources.Listeners { | ||
if predicate(listener) { | ||
return listener | ||
} | ||
} | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package main | ||
|
||
import ( | ||
"io" | ||
"log" | ||
"net" | ||
|
||
v2 "github.com/datawire/ambassador/v2/pkg/api/envoy/service/metrics/v2" | ||
"github.com/golang/protobuf/jsonpb" | ||
"google.golang.org/grpc" | ||
) | ||
|
||
func main() { | ||
grpcServer := grpc.NewServer() | ||
v2.RegisterMetricsServiceServer(grpcServer, New()) | ||
|
||
l, err := net.Listen("tcp", ":8123") | ||
if err != nil { | ||
log.Fatalf("failed to listen: %v", err) | ||
} | ||
|
||
log.Println("Listening on tcp://localhost:8123") | ||
grpcServer.Serve(l) | ||
} | ||
|
||
type server struct { | ||
marshaler jsonpb.Marshaler | ||
} | ||
|
||
var _ v2.MetricsServiceServer = &server{} | ||
|
||
// New ... | ||
func New() v2.MetricsServiceServer { | ||
return &server{ | ||
marshaler: jsonpb.Marshaler{ | ||
Indent: " ", | ||
}, | ||
} | ||
} | ||
|
||
func (s *server) StreamMetrics(stream v2.MetricsService_StreamMetricsServer) error { | ||
log.Println("Started stream") | ||
for { | ||
in, err := stream.Recv() | ||
log.Println("Received value") | ||
if err == io.EOF { | ||
return nil | ||
} | ||
if err != nil { | ||
return err | ||
} | ||
str, _ := s.marshaler.MarshalToString(in) | ||
log.Println(str) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We did a v6.9.2 for 1.14.2 -- just realized that we didn't see that when we were talking today. 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't out yet when we started, so it's not included. There'll have to be a later (much easier!) merge to pull that in.
Actually, if CI passes on your fixes, I'll go ahead and include that in this PR.