Skip to content

Commit

Permalink
Fix flowvisibility e2e test by enable FlowExporter toggle
Browse files Browse the repository at this point in the history
A configuration toggle for flow exporter has recently been added
to antrea agent config. We need to enable both the feature gate
and the toggle to enable flow exporter feature.

antrea-io/antrea#5021
Signed-off-by: heanlan <[email protected]>
  • Loading branch information
heanlan committed Jun 2, 2023
1 parent 34719d8 commit 6fb7ef7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ci/kind/test-e2e-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ function run_test {
curl -o $TMP_DIR/antrea.yml https://raw.githubusercontent.com/antrea-io/antrea/main/build/yamls/antrea.yml
sed -i -e "s|image: \"projects.registry.vmware.com/antrea/antrea-ubuntu:latest\"|image: \"antrea/antrea-ubuntu:latest\"|g" $TMP_DIR/antrea.yml
sed -i -e "s/# FlowExporter: false/ FlowExporter: true/g" $TMP_DIR/antrea.yml
perl -i -p0e 's/ # feature, you need to set "enable" to true, and ensure that the FlowExporter\n # feature gate is also enabled.\n enable: false/ # feature, you need to set "enable" to true, and ensure that the FlowExporter\n # feature gate is also enabled.\n enable: true/' $TMP_DIR/antrea.yml
sed -i -e "s/flowPollInterval: \"5s\"/flowPollInterval: \"1s\"/g" $TMP_DIR/antrea.yml
sed -i -e "s/activeFlowExportTimeout: \"5s\"/activeFlowExportTimeout: \"2s\"/g" $TMP_DIR/antrea.yml
sed -i -e "s/idleFlowExportTimeout: \"15s\"/idleFlowExportTimeout: \"1s\"/g" $TMP_DIR/antrea.yml
Expand Down

0 comments on commit 6fb7ef7

Please sign in to comment.