Skip to content

Commit 4278725

Browse files
gargravarrRodrigo Reismikkeloscar
authored
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

19 files changed

+2637
-283
lines changed

cmd/e2e/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ watch -n 10 "kubectl get -n foo stackset,stack,ing,ep,deployment"
3131
```
3232
kubectl delete namespace foo; kubectl create namespace foo
3333
make
34-
./build/stackset-controller --apiserver=http://127.0.0.1:8001 --controller-id=foo
34+
./build/stackset-controller --apiserver=http://127.0.0.1:8001 \
35+
--enable-routegroup-support --controller-id=foo \
36+
--cluster-domain=${CLUSTER_DOMAIN} --cluster-domain=${CLUSTER_DOMAIN_INTERNAL}
3537
```
3638
4. rebuild e2e test and run e2e tests in `foo` namespace
3739
```

0 commit comments

Comments
 (0)