diff --git a/kubernetes/opentelemetry-demo.yaml b/kubernetes/opentelemetry-demo.yaml index bdf02a74f5..413f6599eb 100644 --- a/kubernetes/opentelemetry-demo.yaml +++ b/kubernetes/opentelemetry-demo.yaml @@ -11003,63 +11003,3 @@ spec: - name: config-emptydir mountPath: /usr/share/opensearch/config/opensearch.yml subPath: opensearch.yml ---- -# Source: opentelemetry-demo/charts/grafana/templates/tests/test-serviceaccount.yaml -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/name: grafana - app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "11.2.2" - name: opentelemetry-demo-grafana-test - namespace: otel-demo - annotations: ---- -# Source: opentelemetry-demo/charts/grafana/templates/tests/test-configmap.yaml -apiVersion: v1 -kind: ConfigMap -metadata: - name: opentelemetry-demo-grafana-test - namespace: otel-demo - annotations: - labels: - app.kubernetes.io/name: grafana - app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "11.2.2" -data: - run.sh: |- - @test "Test Health" { - url="http://opentelemetry-demo-grafana/api/health" - - code=$(wget --server-response --spider --timeout 90 --tries 10 ${url} 2>&1 | awk '/^ HTTP/{print $2}') - [ "$code" == "200" ] - } ---- -# Source: opentelemetry-demo/charts/grafana/templates/tests/test.yaml -apiVersion: v1 -kind: Pod -metadata: - name: opentelemetry-demo-grafana-test - labels: - app.kubernetes.io/name: grafana - app.kubernetes.io/instance: opentelemetry-demo - app.kubernetes.io/version: "11.2.2" - annotations: - namespace: otel-demo -spec: - serviceAccountName: opentelemetry-demo-grafana-test - containers: - - name: opentelemetry-demo-test - image: "docker.io/bats/bats:v1.4.1" - imagePullPolicy: "IfNotPresent" - command: ["/opt/bats/bin/bats", "-t", "/tests/run.sh"] - volumeMounts: - - mountPath: /tests - name: tests - readOnly: true - volumes: - - name: tests - configMap: - name: opentelemetry-demo-grafana-test - restartPolicy: Never