ignore checks and fix some

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales 2023-07-18 16:01:57 +02:00
parent 1b345623bc
commit 9437413a24
No known key found for this signature in database
GPG Key ID: 0069994DD7392198
4 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,5 @@
disable=SC2086 disable=SC2086
disable=SC2034 disable=SC2034
disable=SC2046 disable=SC2046
disable=SC2068
disable=SC2154

View File

@ -26,7 +26,8 @@ set -e
kubectl cluster-info --context kind-$CLUSTER_NAME kubectl cluster-info --context kind-$CLUSTER_NAME
echo "Sleep to give times to node to populate with all info" echo "Sleep to give times to node to populate with all info"
kubectl wait --for=condition=Ready node/$CLUSTER_NAME-control-plane kubectl wait --for=condition=Ready node/$CLUSTER_NAME-control-plane
export EXTERNAL_IP=$(kubectl get nodes -o jsonpath='{.items[].status.addresses[?(@.type == "InternalIP")].address}') EXTERNAL_IP=$(kubectl get nodes -o jsonpath='{.items[].status.addresses[?(@.type == "InternalIP")].address}')
export EXTERNAL_IP
export BRIDGE_IP="172.18.0.1" export BRIDGE_IP="172.18.0.1"
kubectl get nodes -o wide kubectl get nodes -o wide
cd $ROOT_DIR/tests && $GINKGO -r -v ./e2e cd $ROOT_DIR/tests && $GINKGO -r -v ./e2e

View File

@ -367,8 +367,8 @@ fi
# Prepare the image and copy over the files # Prepare the image and copy over the files
export DRIVE
DRIVE=$(losetup -f "${output_image}" --show) DRIVE=$(losetup -f "${output_image}" --show)
export DRIVE
if [ -z "${DRIVE}" ]; then if [ -z "${DRIVE}" ]; then
echo "Cannot execute losetup for $output_image" echo "Cannot execute losetup for $output_image"
exit 1 exit 1

View File

@ -71,7 +71,7 @@ truncate -s "+$((1024*1024))" $OUT
if [ -n "$EXTEND" ]; then if [ -n "$EXTEND" ]; then
echo "Extending image of $EXTEND MB" echo "Extending image of $EXTEND MB"
truncate -s "+$(($EXTEND*1024*1024))" $OUT truncate -s "+$((EXTEND*1024*1024))" $OUT
fi fi
# Create the partition table in $OUT (assumes sectors of 512 bytes) # Create the partition table in $OUT (assumes sectors of 512 bytes)