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] update k8s manifest to chart 0.33.1 - fixes grafana-test pod #1783

Merged
merged 1 commit into from
Nov 20, 2024
Merged
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
60 changes: 0 additions & 60 deletions kubernetes/opentelemetry-demo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Loading