Skip to content

Commit a3153fb

Browse files
Copilotmkowalski
andauthored
test, e2e-upgrade: strip copy-mac-from from downloaded bond example
v0.87.0 handler fails with InvalidArgument when copy-mac-from is used while eth1 is being enslaved into bond0 ("Failed to find interface eth1 for copy-mac-from of iface bond0"). The field was not supported by older handlers. Strip the field after extracting the previous-release examples tarball so that the pre-upgrade createUpgradeCasePolicy call succeeds on old handler versions. Signed-off-by: copilot <copilot@github.com> Co-authored-by: mkowalski <2862927+mkowalski@users.noreply.github.com>
1 parent 3b2b397 commit a3153fb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

hack/prepare-e2e-test-upgrade.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ mkdir -p test_logs/e2e/upgrade
2020
mv ./docs/examples/* .
2121
)
2222

23+
# copy-mac-from was not supported by older handlers; remove it from the
24+
# bond example so that the pre-upgrade policy can be applied successfully.
25+
sed -i '/^\s*copy-mac-from:/d' "${test_e2e_updrade_examples_dir}/bond.yaml"
26+
2327
# download manifests for deployment
2428
(
2529
cd $test_e2e_updrade_manifests_dir

0 commit comments

Comments
 (0)