-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Megrez Lu <[email protected]>
- Loading branch information
1 parent
e6f685a
commit 82f0051
Showing
7 changed files
with
307 additions
and
19 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
GITHUB_RUN_ID ?= latest | ||
KIND_CLUSTER_NAME ?= ci-testing | ||
IMAGE ?= openkruise/kruise-rollout:e2e-$(GITHUB_RUN_ID) | ||
|
||
.PHONY: build-image | ||
build-image: | ||
docker build --pull --no-cache ../ -t $(IMAGE) | ||
|
||
.PHONY: load-image | ||
load-image: build-image | ||
kind load docker-image --name=$(KIND_CLUSTER_NAME) $(IMAGE) | ||
|
||
.PHONY: install-kruise-rollout | ||
install-kruise-rollout: | ||
@pushd .. > /dev/null && IMG=$(IMAGE) ./scripts/deploy_kind.sh && popd > /dev/null | ||
kubectl wait --namespace kruise-rollout \ | ||
--for=condition=ready pod \ | ||
--selector=control-plane=controller-manager \ | ||
--timeout=600s |
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
37 changes: 37 additions & 0 deletions
37
test/e2e/test_data/customNetworkProvider/rollout_with_multi_trafficrouting.yaml
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,37 @@ | ||
apiVersion: rollouts.kruise.io/v1beta1 | ||
kind: Rollout | ||
metadata: | ||
name: rollouts-demo | ||
spec: | ||
disabled: false | ||
workloadRef: | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
name: echoserver | ||
strategy: | ||
canary: | ||
enableExtraWorkloadForCanary: true | ||
steps: | ||
- replicas: 1 | ||
matches: | ||
- headers: | ||
- type: Exact | ||
name: user-agent | ||
value: pc | ||
- queryParams: | ||
- type: Exact | ||
name: user-agent | ||
value: pc | ||
- path: | ||
value: /pc | ||
- replicas: "50%" | ||
traffic: "50%" | ||
trafficRoutings: | ||
- service: echoserver | ||
ingress: | ||
classType: nginx | ||
name: echoserver | ||
customNetworkRefs: | ||
- apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
name: vs-demo |
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