-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CECO-1153] APM e2e test #1549
Merged
Merged
[CECO-1153] APM e2e test #1549
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
28f082a
comment lots of stuff to simplify dev
tbavelier 0188382
apm e2e test and un-comment for dev
tbavelier a64b417
Merge branch 'main' into tbavelier/ceco-1153
tbavelier 30643f7
Merge branch 'main' into tbavelier/ceco-1153
fanny-jiang 74b2df3
Merge branch 'fanny/refactor-kind-e2e' into tbavelier/ceco-1153
tbavelier ccc3a55
rebase on latest fanny
tbavelier ba813ff
apm e2e test refactor
tbavelier c4379f7
fix apm refactor
tbavelier d7598c7
remove pre-refactor apm test
tbavelier 0c08145
remove apm pre refactor util func
tbavelier 1822d96
remove nginx cleanup since it's for pre refactor test
tbavelier 8ee16e0
fix apm e2e refactor: avoid race + remove socket from volume def
tbavelier c3c50d1
verify k8s version before checking local service traces
tbavelier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
19 changes: 19 additions & 0 deletions
19
test/e2e/manifests/new_manifests/apm/datadog-agent-apm.yaml
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,19 @@ | ||
apiVersion: datadoghq.com/v2alpha1 | ||
kind: DatadogAgent | ||
metadata: | ||
namespace: e2e-operator | ||
labels: | ||
agent.datadoghq.com/e2e-test: datadog-agent-apm | ||
spec: | ||
global: | ||
kubelet: | ||
tlsVerify: false | ||
features: | ||
apm: | ||
enabled: true | ||
hostPortConfig: | ||
enabled: true | ||
hostPort: 8126 | ||
unixDomainSocketConfig: | ||
enabled: true | ||
path: /var/run/datadog/apm.socket |
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,79 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: tracegen-tribrid | ||
namespace: e2e-operator | ||
labels: | ||
app: tracegen-tribrid | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: tracegen-tribrid | ||
template: | ||
metadata: | ||
labels: | ||
app: tracegen-tribrid | ||
spec: | ||
containers: | ||
- name: tracegen-tcp-hostip | ||
image: ghcr.io/datadog/apps-tracegen:main | ||
env: | ||
# IP of the node - listened by the trace-Agent if hostPort is enabled | ||
- name: DD_AGENT_HOST | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: status.hostIP | ||
- name: DD_SERVICE | ||
value: "e2e-test-apm-hostip" | ||
- name: DD_ENV | ||
value: "e2e-operator" | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "2m" | ||
limits: | ||
memory: "32Mi" | ||
cpu: "10m" | ||
- name: tracegen-tcp-agent-service | ||
image: ghcr.io/datadog/apps-tracegen:main | ||
env: | ||
# Kubernetes service of the node Agent - enabled by default with the APM feature | ||
# The service is created by the Datadog Operator following convention: <datadog-agent-name>-agent | ||
- name: DD_AGENT_HOST | ||
value: "datadog-agent-apm-agent" | ||
- name: DD_SERVICE | ||
value: "e2e-test-apm-agent-service" | ||
- name: DD_ENV | ||
value: "e2e-operator" | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "2m" | ||
limits: | ||
memory: "32Mi" | ||
cpu: "10m" | ||
- name: tracegen-udp | ||
image: ghcr.io/datadog/apps-tracegen:main | ||
env: | ||
# Socket of the trace-agent | ||
- name: DD_TRACE_AGENT_URL | ||
value: "unix:///var/run/datadog/apm.socket" | ||
- name: DD_SERVICE | ||
value: "e2e-test-apm-socket" | ||
- name: DD_ENV | ||
value: "e2e-operator" | ||
resources: | ||
requests: | ||
memory: "32Mi" | ||
cpu: "2m" | ||
limits: | ||
memory: "32Mi" | ||
cpu: "10m" | ||
volumeMounts: | ||
- name: apmsocketpath | ||
mountPath: /var/run/datadog | ||
volumes: | ||
- name: apmsocketpath | ||
hostPath: | ||
path: /var/run/datadog/ |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is due to my IDE setting, is no-op and this
kind_test.go
will be removed eventually post refactor