-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
e2e-test: Add script to update server image
Add a script to redeploy the server in the kind cluster. It is useful to quickly test new changes without tearing down the cluster and bringing it up again. Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
set -o errexit | ||
|
||
E2E="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
export PATH=${PATH}:${E2E}/bin | ||
OCI_BIN="${OCI_BIN:-docker}" | ||
IMAGE="localhost:5000/multus-networkpolicy-iptables:e2e" | ||
|
||
$OCI_BIN build -t ${IMAGE} ${E2E}/.. | ||
$OCI_BIN push ${IMAGE} | ||
new_image_with_digest=`${OCI_BIN} inspect --format='{{index .RepoDigests 0}}' ${IMAGE}` | ||
|
||
kubectl set image -n kube-system ds/multi-networkpolicy-ds-amd64 multi-networkpolicy=${new_image_with_digest} |