Skip to content

Commit

Permalink
Merge pull request #1325 from spidernet-io/fix/egres-e2e
Browse files Browse the repository at this point in the history
Enhance code fix daily e2e failed
  • Loading branch information
weizhoublue authored and lou-lan committed Apr 26, 2024
2 parents 0a99fa4 + f9a36df commit 291caec
Show file tree
Hide file tree
Showing 11 changed files with 102 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/call-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
- name: Setup Kind Cluster
uses: nick-invision/retry@v3
with:
timeout_minutes: 10
timeout_minutes: 20
max_attempts: 1
shell: bash
command: |
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.5.0
v0.5.1
4 changes: 2 additions & 2 deletions charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ home: "https://spidernet-io.github.io/agent"
# application or library
type: application
# no need to modify this version , CI will auto update it with /VERSION
version: "0.5.0"
version: "0.5.1"
# This field is informational, and has no impact on chart version calculations .
# Leaving it unquoted can lead to parsing issues in some cases
# no need to modify this version , CI will auto update it with /VERSION
appVersion: "0.5.0"
appVersion: "0.5.1"
kubeVersion: ">= 1.16.0-0"
description: egressgateway
sources:
Expand Down
4 changes: 2 additions & 2 deletions charts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ helm install egressgateway egressgateway/egressgateway --namespace kube-system
| `agent.image.repository` | The image repository of egressgateway agent | `spidernet-io/egressgateway-agent` |
| `agent.image.pullPolicy` | The image pull policy of egressgateway agent | `IfNotPresent` |
| `agent.image.digest` | The image digest of egressgateway agent, which takes preference over tag | `""` |
| `agent.image.tag` | The image tag of egressgateway agent, overrides the image tag whose default is the chart appVersion. | `v0.5.0` |
| `agent.image.tag` | The image tag of egressgateway agent, overrides the image tag whose default is the chart appVersion. | `v0.5.1` |
| `agent.image.imagePullSecrets` | the image pull secrets of egressgateway agent | `[]` |
| `agent.serviceAccount.create` | Create the service account for the egressgateway agent | `true` |
| `agent.serviceAccount.annotations` | The annotations of egressgateway agent service account | `{}` |
Expand Down Expand Up @@ -125,7 +125,7 @@ helm install egressgateway egressgateway/egressgateway --namespace kube-system
| `controller.image.repository` | The image repository of egressgateway controller | `spidernet-io/egressgateway-controller` |
| `controller.image.pullPolicy` | The image pullPolicy of egressgateway controller | `IfNotPresent` |
| `controller.image.digest` | The image digest of egressgatewayController, which takes preference over tag | `""` |
| `controller.image.tag` | The image tag of egressgateway controller, overrides the image tag whose default is the chart appVersion. | `v0.5.0` |
| `controller.image.tag` | The image tag of egressgateway controller, overrides the image tag whose default is the chart appVersion. | `v0.5.1` |
| `controller.image.imagePullSecrets` | The image pull secrets of egressgateway controller | `[]` |
| `controller.serviceAccount.create` | Create the service account for the egressgateway controller | `true` |
| `controller.serviceAccount.annotations` | The annotations of egressgateway controller service account | `{}` |
Expand Down
4 changes: 2 additions & 2 deletions charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ agent:
## @param agent.image.digest The image digest of egressgateway agent, which takes preference over tag
digest: ""
## @param agent.image.tag The image tag of egressgateway agent, overrides the image tag whose default is the chart appVersion.
tag: "v0.5.0"
tag: "v0.5.1"
## @param agent.image.imagePullSecrets the image pull secrets of egressgateway agent
imagePullSecrets: []
# - name: "image-pull-secret"
Expand Down Expand Up @@ -239,7 +239,7 @@ controller:
## @param controller.image.digest The image digest of egressgatewayController, which takes preference over tag
digest: ""
## @param controller.image.tag The image tag of egressgateway controller, overrides the image tag whose default is the chart appVersion.
tag: "v0.5.0"
tag: "v0.5.1"
## @param controller.image.imagePullSecrets The image pull secrets of egressgateway controller
imagePullSecrets: []
# - name: "image-pull-secret"
Expand Down
4 changes: 2 additions & 2 deletions test/doc/reliability.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

| Case ID | Title | Priority | Smoke | Status | Other |
|---------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------|---------|--------|-------|
| R00001 | Use `kwok` to create 10 `Node`, create `Deployment` with 1000 replicas, create `Policy` and set `PodSelector` to match `Deployment`,<br/>all matched `Pod`'s egress IP in the real node is `eip` | p3 | false | done | |
| R00002 | Use `kwok` to create 10 `Node`, create `Deployment` with 1000 replicas, create `Policy` and set `PodSelector` to match `Deployment`,<br/>After restarting `Deployment` successfully, all matched `Pod`'s egress IP in the real node is `eip` | p3 | false | done | |
| R00001 | Use `kwok` to create 10 `Node`, create `Deployment` with 1000 replicas, create `Policy` and set `PodSelector` to match `Deployment`,<br/>all matched `Pod`'s egress IP in the real node is `eip` | p3 | false | | |
| R00002 | Use `kwok` to create 10 `Node`, create `Deployment` with 1000 replicas, create `Policy` and set `PodSelector` to match `Deployment`,<br/>After restarting `Deployment` successfully, all matched `Pod`'s egress IP in the real node is `eip` | p3 | false | | |
| R00005 | When the node where `eip` takes effect is shut down, `eip` will take effect to another node matching `NodeSelector`, and `egressGatewayStatus` and `EgressClusterStatus` are updated as expected, and the `EgressTunnel` corresponding to the shutdown node ` will be deleted and the egress IP will be accessed as expected | p3 | false | done | |
| R00006 | After shutting down all nodes matched by `NodeSelector` in `egressGateway`,<br/>`Pod`’s egress IP will be changed from `eip` to non-`eip`, `egressGatewayStatus.NodeList` will be empty, and the related `EgressIgnoreCIDR.NodeIP` will be deleted and the `EgressTunnel` corresponding to the shutdown node will be deleted. <br/> After one of the `node` is turned on, `egressgateway` will recover in a short time and record the recovery time, and `eip` will be revalidated as the egress IP of `Pod`, and the `nodeIP` will be added to `EgressIgnoreCIDR.NodeIP` and `node` related information in `egressGatewayStatus.NodeList` is updated correctly, <br/>after all boots, `eip` will only take effect on the first recovered `node`, and `EgressIgnoreCIDR.NodeIP` is updated correct | p3 | false | done | |
| R00007 | Restart each component in the cluster (including calico, kube-proxy) `Pod` in turn. During the restart process, the access IP to outside the cluster is the set `eip` before, and the traffic cannot be interrupted. After the cluster returns to normal, `egressgateway` The individual `cr` state of the component is correct | p1 | false | done | |
Expand Down
Loading

0 comments on commit 291caec

Please sign in to comment.