Skip to content

Commit

Permalink
DEVOPS-2178: Update local dev-env to use Wallarm feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeniy Dmitriev committed Aug 30, 2023
1 parent 4d91e92 commit 44212d2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
12 changes: 9 additions & 3 deletions build/dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ if [[ ${KUBE_CLIENT_VERSION} -lt 24 ]]; then
exit 1
fi

echo "[dev-env] building image"
make build image
docker tag "${REGISTRY}/ingress-controller:${TAG}" "${DEV_IMAGE}"
if [ "${SKIP_IMAGE_CREATION:-false}" = "false" ]; then
echo "[dev-env] building image"
make build image
docker tag "${REGISTRY}/ingress-controller:${TAG}" "${DEV_IMAGE}"
fi

export K8S_VERSION=${K8S_VERSION:-v1.26.3@sha256:61b92f38dff6ccc29969e7aa154d34e38b89443af1a2c14e6cfbd2df6419c66f}

Expand All @@ -85,6 +87,10 @@ controller:
repository: ${REGISTRY}/ingress-controller
tag: ${TAG}
digest:
wallarm:
enabled: true
apiHost: ${WALLARM_API_HOST}
token: ${WALLARM_API_TOKEN}
config:
worker-processes: "1"
podLabels:
Expand Down
2 changes: 1 addition & 1 deletion test/smoke/run-smoke-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fi

echo "Retrieving Wallarm Node UUID ..."
POD=$(kubectl get pod -l "app.kubernetes.io/component=controller" -o=name | cut -d/ -f 2)
NODE_UUID=$(kubectl logs "${POD}" -c addnode | grep 'Registered new instance' | awk -F 'instance ' '{print $2}')
NODE_UUID=$(kubectl exec "${POD}" -c controller -- cat /etc/wallarm/node.yaml | grep uuid | awk '{print $2}')
echo "UUID: ${NODE_UUID}"

echo "Deploying pytest pod ..."
Expand Down

0 comments on commit 44212d2

Please sign in to comment.