-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chore] Add interoperability tests for Tempo and OpenShift Serverless (…
…#923) * Add interoperability jobs for Tempo and OpenShift Serverless * Fix upgrade test
- Loading branch information
1 parent
ca84dd2
commit 0ed0494
Showing
35 changed files
with
2,071 additions
and
5 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ RUN curl -LO https://github.com/kudobuilder/kuttl/releases/download/v0.15.0/kube | |
&& mv kubectl-kuttl_0.15.0_linux_x86_64 /usr/local/bin/kuttl | ||
|
||
# Install chainsaw | ||
RUN go install github.com/kyverno/[email protected].0 | ||
RUN go install github.com/kyverno/[email protected].4 | ||
|
||
# Install kubectl and oc | ||
RUN curl -L -o oc.tar.gz https://mirror.openshift.com/pub/openshift-v4/x86_64/clients/ocp/latest/openshift-client-linux.tar.gz \ | ||
|
89 changes: 89 additions & 0 deletions
89
tests/e2e-openshift-serverless/otel-tempo-serverless/chainsaw-test.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,89 @@ | ||
apiVersion: chainsaw.kyverno.io/v1alpha1 | ||
kind: Test | ||
metadata: | ||
name: otel-tempo-serverless | ||
spec: | ||
# The test case needs to run serially as it creates resources in static namespaces knative-serving knative-eventing. | ||
concurrent: false | ||
namespace: chainsaw-otel-tempo-serverless | ||
steps: | ||
- name: Install Minio object store | ||
try: | ||
- apply: | ||
file: install-minio.yaml | ||
- assert: | ||
file: install-minio-assert.yaml | ||
- name: Install TempoStack | ||
try: | ||
- apply: | ||
file: install-tempo.yaml | ||
- assert: | ||
file: install-tempo-assert.yaml | ||
- name: Create the OTEL collector instance | ||
try: | ||
- apply: | ||
file: create-otel-collector.yaml | ||
- assert: | ||
file: create-otel-collector-assert.yaml | ||
- name: Create Knative serving instance | ||
try: | ||
- apply: | ||
file: create-knative-serving.yaml | ||
- assert: | ||
file: create-knative-serving-assert.yaml | ||
- name: Create Knative eventing instance | ||
try: | ||
- apply: | ||
file: create-knative-eventing.yaml | ||
- assert: | ||
file: create-knative-eventing-assert.yaml | ||
- name: Create Knative service app instance | ||
try: | ||
- apply: | ||
file: create-knative-app.yaml | ||
- assert: | ||
file: create-knative-app-assert.yaml | ||
- name: Generate Traces by probing the Knative service app instance | ||
try: | ||
- apply: | ||
file: generate-traces.yaml | ||
- assert: | ||
file: generate-traces-assert.yaml | ||
- name: Verify the Traces in Tempo instance | ||
try: | ||
- apply: | ||
file: verify-traces.yaml | ||
- assert: | ||
file: verify-traces-assert.yaml | ||
cleanup: | ||
- delete: | ||
ref: | ||
apiVersion: serving.knative.dev/v1 | ||
kind: Service | ||
name: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
- delete: | ||
ref: | ||
apiVersion: serving.knative.dev/v1 | ||
kind: Route | ||
name: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
- delete: | ||
ref: | ||
apiVersion: networking.internal.knative.dev/v1alpha1 | ||
kind: Ingress | ||
name: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
- delete: | ||
ref: | ||
apiVersion: operator.knative.dev/v1beta1 | ||
kind: KnativeEventing | ||
name: serverless | ||
namespace: knative-eventing | ||
- delete: | ||
ref: | ||
apiVersion: operator.knative.dev/v1beta1 | ||
kind: KnativeServing | ||
name: serverless | ||
namespace: knative-serving | ||
|
93 changes: 93 additions & 0 deletions
93
tests/e2e-openshift-serverless/otel-tempo-serverless/create-knative-app-assert.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,93 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: helloworld-go | ||
serving.knative.dev/configuration: serverless-app | ||
serving.knative.dev/service: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
status: | ||
availableReplicas: 1 | ||
readyReplicas: 1 | ||
replicas: 1 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
spec: | ||
externalName: kourier-internal.knative-serving-ingress.svc.cluster.local | ||
ports: | ||
- name: http2 | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 80 | ||
type: ExternalName | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: serverless-app-00001 | ||
namespace: chainsaw-otel-tempo-serverless | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8012 | ||
- name: https | ||
port: 443 | ||
protocol: TCP | ||
targetPort: 8112 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: serverless-app-00001-private | ||
namespace: chainsaw-otel-tempo-serverless | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8012 | ||
- name: https | ||
port: 443 | ||
protocol: TCP | ||
targetPort: 8112 | ||
- name: http-autometric | ||
port: 9090 | ||
protocol: TCP | ||
targetPort: http-autometric | ||
- name: http-usermetric | ||
port: 9091 | ||
protocol: TCP | ||
targetPort: http-usermetric | ||
- name: http-queueadm | ||
port: 8022 | ||
protocol: TCP | ||
targetPort: 8022 | ||
- name: http-istio | ||
port: 8012 | ||
protocol: TCP | ||
targetPort: 8012 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: helloworld-go | ||
status: | ||
containerStatuses: | ||
- name: queue-proxy | ||
ready: true | ||
started: true | ||
- name: user-container | ||
ready: true | ||
started: true | ||
phase: Running |
23 changes: 23 additions & 0 deletions
23
tests/e2e-openshift-serverless/otel-tempo-serverless/create-knative-app.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,23 @@ | ||
apiVersion: serving.knative.dev/v1 | ||
kind: Service | ||
metadata: | ||
name: serverless-app | ||
namespace: chainsaw-otel-tempo-serverless | ||
spec: | ||
template: | ||
metadata: | ||
labels: | ||
app: helloworld-go | ||
annotations: | ||
autoscaling.knative.dev/minScale: "1" | ||
autoscaling.knative.dev/target: "1" | ||
spec: | ||
containers: | ||
- image: quay.io/openshift-knative/helloworld:v1.2 | ||
imagePullPolicy: Always | ||
resources: | ||
requests: | ||
cpu: "200m" | ||
env: | ||
- name: TARGET | ||
value: "Go Sample v1" |
106 changes: 106 additions & 0 deletions
106
tests/e2e-openshift-serverless/otel-tempo-serverless/create-knative-eventing-assert.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,106 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: eventing-controller | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: eventing-webhook | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: imc-controller | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: imc-dispatcher | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mt-broker-controller | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mt-broker-filter | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mt-broker-ingress | ||
namespace: knative-eventing | ||
status: | ||
availableReplicas: 2 | ||
readyReplicas: 2 | ||
replicas: 2 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
labels: | ||
app: eventing-controller | ||
app.kubernetes.io/component: eventing-controller | ||
app.kubernetes.io/name: knative-eventing | ||
namespace: knative-eventing | ||
status: | ||
containerStatuses: | ||
- name: eventing-controller | ||
ready: true | ||
started: true | ||
- name: kube-rbac-proxy | ||
ready: true | ||
started: true | ||
phase: Running | ||
|
||
--- | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
labels: | ||
app: storage-version-migration-eventing | ||
app.kubernetes.io/component: storage-version-migration-job | ||
app.kubernetes.io/name: knative-eventing | ||
namespace: knative-eventing | ||
status: | ||
succeeded: 1 |
19 changes: 19 additions & 0 deletions
19
tests/e2e-openshift-serverless/otel-tempo-serverless/create-knative-eventing.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: project.openshift.io/v1 | ||
kind: Project | ||
metadata: | ||
name: knative-eventing | ||
spec: {} | ||
|
||
--- | ||
apiVersion: operator.knative.dev/v1beta1 | ||
kind: KnativeEventing | ||
metadata: | ||
name: serverless | ||
namespace: knative-eventing | ||
spec: | ||
config: | ||
tracing: | ||
backend: "zipkin" | ||
zipkin-endpoint: "http://serverless-collector-headless.chainsaw-otel-tempo-serverless.svc:9411/api/v2/spans" | ||
debug: "false" | ||
sample-rate: "0.1" |
Oops, something went wrong.