-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issues/210' into link-rule
- Loading branch information
Showing
16 changed files
with
209 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# script | ||
kubectl create deployment ancestors --image=alpine:3.16 --replicas=2 -- sleep infinity | ||
local first_rs_name=$(kubectl get replicasets --selector app=ancestors -o json | jq -r '.items[0].metadata.name') | ||
sleep 5 | ||
kubectl set image deployments ancestors alpine=alpine:3.17 | ||
sleep 30 | ||
kubectl delete deployments ancestors | ||
|
||
# config | ||
local TEST_DISPLAY_MODE="22000000" # tracing, ancestors only | ||
local TRACE_DISPLAY_NAME="Deployment" | ||
|
||
TRACE_SEARCH_TAGS[cluster]=tracetest | ||
TRACE_SEARCH_TAGS[group]=apps | ||
TRACE_SEARCH_TAGS[resource]=replicasets | ||
TRACE_SEARCH_TAGS[namespace]=default | ||
TRACE_SEARCH_TAGS[name]=$first_rs_name |
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,18 @@ | ||
include "assert"; | ||
include "graph"; | ||
|
||
.data[0] | ||
| ._ = ( | ||
# check root | ||
.spans | ||
| root | ||
| .tags | from_entries | ||
| assertEq("root span is deployment"; .resource; "deployments") | ||
| assertEq("root span has the correct name"; .name; "ancestors") | ||
) | ._ = ( | ||
# root only has one child | ||
.spans | ||
| children(root.spanID) | ||
| assertEq("there is only one child replicaset"; length; 1) | ||
) | ||
| null |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.