diff --git a/tests/e2e-openshift-object-stores/aws-sts-monolithic/install-monolithic-assert.yaml b/tests/e2e-openshift-object-stores/aws-sts-monolithic/install-monolithic-assert.yaml index 66c6d9485..c346c7dcd 100644 --- a/tests/e2e-openshift-object-stores/aws-sts-monolithic/install-monolithic-assert.yaml +++ b/tests/e2e-openshift-object-stores/aws-sts-monolithic/install-monolithic-assert.yaml @@ -97,6 +97,9 @@ metadata: namespace: chainsaw-awssts-mono status: containerStatuses: + - name: jaeger-query + ready: true + started: true - name: oauth-proxy ready: true started: true diff --git a/tests/operator-metrics/max-loops/00-assert.yaml b/tests/operator-metrics/max-loops/00-assert.yaml index 36cb7a1f4..a2c8f2a87 100644 --- a/tests/operator-metrics/max-loops/00-assert.yaml +++ b/tests/operator-metrics/max-loops/00-assert.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: sa-assert-metrics - namespace: tempo-operator-system + namespace: ($TEMPO_NAMESPACE) --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding diff --git a/tests/operator-metrics/max-loops/00-metrics-service.yaml b/tests/operator-metrics/max-loops/00-metrics-service.yaml index c927dccfd..bfe443c8b 100644 --- a/tests/operator-metrics/max-loops/00-metrics-service.yaml +++ b/tests/operator-metrics/max-loops/00-metrics-service.yaml @@ -2,7 +2,7 @@ apiVersion: v1 kind: ServiceAccount metadata: name: sa-assert-metrics - namespace: tempo-operator-system + namespace: ($TEMPO_NAMESPACE) --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding @@ -11,7 +11,7 @@ metadata: subjects: - kind: ServiceAccount name: sa-assert-metrics - namespace: tempo-operator-system + namespace: ($TEMPO_NAMESPACE) roleRef: kind: ClusterRole name: tempo-operator-metrics-reader diff --git a/tests/operator-metrics/max-loops/01-assert-job.yaml b/tests/operator-metrics/max-loops/01-assert-job.yaml index be9cd95da..9fbedde5d 100644 --- a/tests/operator-metrics/max-loops/01-assert-job.yaml +++ b/tests/operator-metrics/max-loops/01-assert-job.yaml @@ -2,7 +2,7 @@ apiVersion: batch/v1 kind: Job metadata: name: verify-metrics - namespace: tempo-operator-system + namespace: ($TEMPO_NAMESPACE) status: conditions: - status: "True" diff --git a/tests/operator-metrics/max-loops/01-verify-metrics.yaml b/tests/operator-metrics/max-loops/01-verify-metrics.yaml index 08fea9a3d..eed1adb4b 100644 --- a/tests/operator-metrics/max-loops/01-verify-metrics.yaml +++ b/tests/operator-metrics/max-loops/01-verify-metrics.yaml @@ -2,7 +2,7 @@ apiVersion: batch/v1 kind: Job metadata: name: verify-metrics - namespace: tempo-operator-system + namespace: ($TEMPO_NAMESPACE) spec: template: spec: diff --git a/tests/operator-metrics/max-loops/chainsaw-test.yaml b/tests/operator-metrics/max-loops/chainsaw-test.yaml index 73c2d2c45..f5b2afbb5 100755 --- a/tests/operator-metrics/max-loops/chainsaw-test.yaml +++ b/tests/operator-metrics/max-loops/chainsaw-test.yaml @@ -8,6 +8,19 @@ spec: steps: - name: step-00 try: + - command: + entrypoint: oc + args: + - get + - pods + - -A + - -l control-plane=controller-manager + - -l app.kubernetes.io/name=tempo-operator + - -o + - jsonpath={.items[0].metadata.namespace} + outputs: + - name: TEMPO_NAMESPACE + value: ($stdout) - apply: file: 00-metrics-service.yaml - assert: @@ -15,6 +28,19 @@ spec: - name: step-01 try: + - command: + entrypoint: oc + args: + - get + - pods + - -A + - -l control-plane=controller-manager + - -l app.kubernetes.io/name=tempo-operator + - -o + - jsonpath={.items[0].metadata.namespace} + outputs: + - name: TEMPO_NAMESPACE + value: ($stdout) - apply: file: 01-verify-metrics.yaml - assert: