Skip to content

Commit

Permalink
Update e2e tests to use multiarch Telemetrygen image (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
IshwarKanse authored Jan 11, 2024
1 parent f9ead74 commit bc91c86
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion tests/e2e-autoscale/autoscale/02-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
spec:
containers:
- name: telemetrygen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
command:
- "./telemetrygen"
args:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-openshift/kafka/04-generate-traces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
spec:
containers:
- name: telemetrygen-traces
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
command: ["./telemetrygen"]
args:
- "--otlp-endpoint=kafka-exporter-collector-headless.kuttl-kafka.svc:4317"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e-openshift/monitoring/02-generate-traces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
spec:
containers:
- name: telemetrygen-traces
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
command: ["./telemetrygen"]
args:
- "--otlp-endpoint=cluster-collector-collector-headless:4317"
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e-openshift/multi-cluster/04-generate-traces.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
spec:
containers:
- name: telemetrygen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.75.0
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
args:
- traces
- --otlp-endpoint=otel-sender-collector:4318
Expand All @@ -30,7 +30,7 @@ spec:
spec:
containers:
- name: telemetrygen
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.75.0
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
args:
- traces
- --otlp-endpoint=otel-sender-collector:4317
Expand Down
7 changes: 4 additions & 3 deletions tests/e2e-openshift/multi-cluster/generate_certs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ mkdir -p "$CERT_DIR"
hostname_domain="*.apps.$(oc get dns cluster -o jsonpath='{.spec.baseDomain}')"

# Set certificate information
CERT_SUBJECT="/C=US/ST=California/L=San Francisco/O=My Organization/CN=$hostname_domain"
CERT_SUBJECT="/C=US/ST=California/L=San Francisco/O=My Organization/CN=opentelemetry"

# Create a temporary OpenSSL configuration file for SANs
openssl_config="$CERT_DIR/openssl.cnf"
Expand All @@ -23,7 +23,8 @@ keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectAltName = @alt_names
[alt_names]
DNS.1 = $hostname_domain
DNS.1 = opentelemetry
DNS.2 = $hostname_domain
EOF

# Generate private key for the server
Expand Down Expand Up @@ -56,4 +57,4 @@ kubectl create configmap kuttl-certs -n kuttl-multi-cluster-receive \
--from-file=server.key="$CERT_DIR/server.key" \
--from-file=ca.crt="$CERT_DIR/ca.crt"

echo "ConfigMaps created successfully."
echo "ConfigMaps created successfully."
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ spec:
spec:
containers:
- name: telemetrygen-traces
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
command: ["./telemetrygen"]
args:
- "--otlp-endpoint=cluster-collector-collector-headless.kuttl-otlp-metrics.svc:4317"
Expand All @@ -64,7 +64,7 @@ spec:
spec:
containers:
- name: telemetrygen-metrics
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:latest
image: ghcr.io/open-telemetry/opentelemetry-collector-contrib/telemetrygen:v0.92.0
command: ["./telemetrygen"]
args:
- "--otlp-endpoint=cluster-collector-collector-headless.kuttl-otlp-metrics.svc:4317"
Expand Down

0 comments on commit bc91c86

Please sign in to comment.