-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NODE-5888 Use node group instead of node uuid
- Loading branch information
1 parent
5b0e795
commit 5d8de29
Showing
5 changed files
with
10 additions
and
13 deletions.
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
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 |
---|---|---|
|
@@ -57,16 +57,8 @@ if ! kubectl get secret "${SMOKE_IMAGE_PULL_SECRET_NAME}" &> /dev/null; then | |
[email protected] | ||
fi | ||
|
||
echo "Retrieving Wallarm Node UUID ..." | ||
POD=$(kubectl get pod -l app=workload -o=name | cut -d/ -f 2) | ||
NODE_UUID=$(kubectl exec "${POD}" -c sidecar-proxy -- cat /opt/wallarm/etc/wallarm/node.yaml | grep uuid | awk '{print $2}' | xargs) | ||
if [[ -z "${NODE_UUID}" ]]; then | ||
echo "Failed to retrieve Wallarm Node UUID" | ||
get_logs_and_fail | ||
fi | ||
echo "Node UUID: ${NODE_UUID}" | ||
|
||
echo "Retrieving Wallarm NODE_VERSION ..." | ||
POD=$(kubectl get pod -l app=workload -o=name | cut -d/ -f 2) | ||
NODE_VERSION=$(kubectl get pod ${POD} -o jsonpath="{.spec.containers[?(@.name=='sidecar-proxy')].image}" | awk -F ":" '{print $2}') | ||
echo "Node version: ${NODE_VERSION}" | ||
|
||
|
@@ -89,7 +81,6 @@ spec: | |
- command: [sleep, infinity] | ||
env: | ||
- {name: NODE_BASE_URL, value: "${NODE_BASE_URL}"} | ||
- {name: NODE_UUID, value: "${NODE_UUID}"} | ||
- {name: WALLARM_API_HOST, value: "${WALLARM_API_HOST}"} | ||
- {name: WALLARM_API_PRESET, value: "${WALLARM_API_PRESET}"} | ||
- {name: API_CA_VERIFY, value: "${WALLARM_API_CA_VERIFY}"} | ||
|
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