Skip to content
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

fix: chainsaw bad conversion #2646

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/e2e-opampbridge/opampbridge/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ metadata:
name: opampbridge
spec:
steps:
- catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-opamp-bridge
name: step-00
- name: step-00
try:
- apply:
file: 00-install.yaml
- assert:
file: 00-assert.yaml
catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-opamp-bridge

5 changes: 2 additions & 3 deletions tests/e2e-openshift/kafka/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ spec:
file: 04-generate-traces.yaml
- assert:
file: 04-assert.yaml
- catch:
- name: step-05
try:
- script:
content: ./tests/e2e-openshift/kafka/check_traces.sh
name: step-05
try: null
14 changes: 6 additions & 8 deletions tests/e2e-openshift/monitoring/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ metadata:
name: monitoring
spec:
steps:
- catch:
- script:
content: ./tests/e2e-openshift/monitoring/check_user_workload_monitoring.sh
name: step-00
- name: step-00
try:
- apply:
file: 00-workload-monitoring.yaml
- script:
content: ./tests/e2e-openshift/monitoring/check_user_workload_monitoring.sh
- name: step-01
try:
- apply:
Expand All @@ -25,12 +24,11 @@ spec:
file: 02-generate-traces.yaml
- assert:
file: 02-assert.yaml
- catch:
- script:
content: ./tests/e2e-openshift/monitoring/check_metrics.sh
name: step-03
- name: step-03
try:
- apply:
file: 03-create-monitoring-roles.yaml
- assert:
file: 03-assert.yaml
- script:
content: ./tests/e2e-openshift/monitoring/check_metrics.sh
5 changes: 2 additions & 3 deletions tests/e2e-openshift/multi-cluster/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ spec:
file: 04-generate-traces.yaml
- assert:
file: 04-assert.yaml
- catch:
- name: step-05
try:
- script:
content: ./tests/e2e-openshift/multi-cluster/check_traces.sh
name: step-05
try: null
17 changes: 7 additions & 10 deletions tests/e2e-openshift/otlp-metrics-traces/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ spec:
file: 00-install-jaeger.yaml
- assert:
file: 00-assert.yaml
- catch:
- script:
content: ./tests/e2e-openshift/otlp-metrics-traces/check_user_workload_monitoring.sh
name: step-01
- name: step-01
try:
- apply:
file: 01-workload-monitoring.yaml
- script:
content: ./tests/e2e-openshift/otlp-metrics-traces/check_user_workload_monitoring.sh
- name: step-02
try:
- apply:
Expand All @@ -31,13 +30,11 @@ spec:
file: 03-metrics-traces-gen.yaml
- assert:
file: 03-assert.yaml
- catch:
- name: step-04
try:
- script:
content: ./tests/e2e-openshift/otlp-metrics-traces/check_traces.sh
name: step-04
try: null
- catch:
- name: step-05
try:
- script:
content: ./tests/e2e-openshift/otlp-metrics-traces/check_metrics.sh
name: step-05
try: null
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@ spec:
openshift.io/sa.scc.uid-range: 1000/1000
openshift.io/sa.scc.supplemental-groups: 3000/1000
steps:
- catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
name: step-00
- name: step-00
try:
- apply:
template: true
file: 00-install.yaml
- assert:
file: 00-assert.yaml
catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
- name: step-01
try:
- sleep:
Expand Down
23 changes: 12 additions & 11 deletions tests/e2e/prometheus-config-validation/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ spec:
try:
- apply:
file: 01-promreceiver-labeldrop.yaml
- catch:
- name: step-02
try:
- apply:
file: 02-promreceiver-allocatorconfig-extra.yaml
- assert:
file: 02-assert.yaml
catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
- podLogs:
Expand All @@ -26,13 +32,13 @@ spec:
container: manager
namespace: opentelemetry-operator-system
selector: app.kubernetes.io/name=opentelemetry-operator
name: step-02
- name: step-03
try:
- apply:
file: 02-promreceiver-allocatorconfig-extra.yaml
file: 03-promreceiver-nopromconfig.yaml
- assert:
file: 02-assert.yaml
- catch:
file: 03-assert.yaml
catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
- podLogs:
Expand All @@ -41,9 +47,4 @@ spec:
container: manager
namespace: opentelemetry-operator-system
selector: app.kubernetes.io/name=opentelemetry-operator
name: step-03
try:
- apply:
file: 03-promreceiver-nopromconfig.yaml
- assert:
file: 03-assert.yaml

8 changes: 4 additions & 4 deletions tests/e2e/smoke-targetallocator/chainsaw-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@ metadata:
name: smoke-targetallocator
spec:
steps:
- catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
name: step-00
- name: step-00
try:
- apply:
template: true
file: 00-install.yaml
- assert:
file: 00-assert.yaml
catch:
- podLogs:
selector: app.kubernetes.io/component=opentelemetry-targetallocator
- name: step-01
try:
- apply:
Expand Down
Loading