Commit 4278725
Add support for traffic segments. (#495)
* Debug e2es.
Signed-off-by: Rodrigo Reis <[email protected]>
* Add segment routegroup and ingress.
Signed-off-by: Rodrigo Reis <[email protected]>
* Add ingress segments to resources; compute new segments on traffic updates.
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix decimals; cleanup; fix regex.
Signed-off-by: Rodrigo Reis <[email protected]>
* More cleanup.
Signed-off-by: Rodrigo Reis <[email protected]>
* More cleanup.
Signed-off-by: Rodrigo Reis <[email protected]>
* Move segment computing to stack reconciliation.
Signed-off-by: Rodrigo Reis <[email protected]>
* Move segment reconciliation to the end.
Signed-off-by: Rodrigo Reis <[email protected]>
* Collect routegroup segments.
Signed-off-by: Rodrigo Reis <[email protected]>
* Support routegroups (unfinished).
Signed-off-by: Rodrigo Reis <[email protected]>
* Fixed checking up to date resources
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix unit tests.
Signed-off-by: Rodrigo Reis <[email protected]>
* Remove deprecated linters.
Signed-off-by: Rodrigo Reis <[email protected]>
* Switchs e2es to teapot, for now.
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix switching e2es to teapot.
Signed-off-by: Rodrigo Reis <[email protected]>
* Wait on traffic segments.
Signed-off-by: Rodrigo Reis <[email protected]>
* Adapt routegroup verification for segments; fix E2E docs
Signed-off-by: Rodrigo Reis <[email protected]>
* Refactor routegroup and ingress verification on E2Es; start fixing RouteGroup to Ingress (and vice-versa) E2Es
Signed-off-by: Rodrigo Reis <[email protected]>
* Force stackset e2e to use traffic segments
Signed-off-by: Rodrigo Reis <[email protected]>
* e2es back to stups-test; remove unused var.
Signed-off-by: Rodrigo Reis <[email protected]>
* Extract Traffic Segment struct.
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix sorting; move segment manipulation to trafficsegment struct,
Signed-off-by: Rodrigo Reis <[email protected]>
* Support both traffic segments and central traffic management.
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix traffic switch.
Signed-off-by: Rodrigo Reis <[email protected]>
* Reset e2es.
Signed-off-by: Rodrigo Reis <[email protected]>
* Newlines.
Signed-off-by: Rodrigo Reis <[email protected]>
* Convert to traffic segments.
Signed-off-by: Rodrigo Reis <[email protected]>
* Revert to legacy StackSet.
Signed-off-by: Rodrigo Reis <[email protected]>
* Fix e2e cluster targeting to stups-test.
Signed-off-by: Rodrigo Reis <[email protected]>
* E2E for traffic segment stackset.
Signed-off-by: Rodrigo Reis <[email protected]>
* Rearrange code, run goimports.
Signed-off-by: Rodrigo Reis <[email protected]>
* goimports
Signed-off-by: Rodrigo Reis <[email protected]>
* Delete central ingress considering TTL timeout.
* Update ingress type resources from stack spec, not stackset.
Signed-off-by: Rodrigo Reis <[email protected]>
* Don't override backend port when no ingress resource.
Signed-off-by: Rodrigo Reis <[email protected]>
* E2E tests also segments (Part 1).
* Test stackset creation also with segments.
* Test stackset updates also with segments.
* Add option to enable traffic segments by default. Improve convertion to segments end-2-end test.
* Flip unit tests to use segments by default.
* Ensure controller injects segment annotation when needed.
* Fix e2e.
* Backslashes to shell commands.
* Fix comment typo.
* Improve error message.
* Improve veriable naming.
* Move annotation injection to reconciler logic.
* Ensure create/update traffic segments when reconciling stack.
* Check if update is needed based on resource state
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
* Format.
* Generate actual segment in cluster.
* Decouple segment computing and generation; configure options to completely disable segments.
* Add more context to logs.
* Add missing ConfigMap code.
---------
Signed-off-by: Rodrigo Reis <[email protected]>
Signed-off-by: Rodrigo Reis <[email protected]>
Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
Co-authored-by: Rodrigo Reis <[email protected]>
Co-authored-by: Mikkel Oscar Lyderik Larsen <[email protected]>1 parent 83ce20f commit 4278725
File tree
19 files changed
+2637
-283
lines changed- cmd
- e2e
- stackset-controller
- controller
- e2e/apply
- pkg/core
19 files changed
+2637
-283
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
0 commit comments