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

chore: bump openobserve #127

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
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
13 changes: 7 additions & 6 deletions docs/demos/openobserve/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ spec:
# terminationGracePeriodSeconds: 0
containers:
- name: openobserve
image: public.ecr.aws/zinclabs/openobserve:v0.7.2
image: public.ecr.aws/zinclabs/openobserve:v0.14.0
env:
- name: ZO_ROOT_USER_EMAIL
value: [email protected]
Expand Down Expand Up @@ -123,10 +123,11 @@ kubectl -n openobserve port-forward svc/openobserve 5080:5080 &
#kubectl -n openobserve port-forward svc/openobserve-otlp-grpc 5081:5081 &
sleep 5

# TODO: use yq instead of sed
OO_ORG_PWD=$(curl --silent localhost:5080/api/default/organizations/passcode -v --user [email protected]:Complexpass#123 | jq .data.passcode -r)
OO_TOKEN=$(echo -n [email protected]:$OO_ORG_PWD | base64)
sed -i '' -e "s/Authorization.*/Authorization:\ \"Basic ${OO_TOKEN}\"/" ./demo.yaml
OO_USER="[email protected]"
OO_PWD="Complexpass#123"
OO_PASSCODE=$(curl --silent localhost:5080/api/default/passcode -v --user $OO_USER:$OO_PWD | jq .data.passcode -r)
OO_TOKEN=$(echo "$OO_USER:$OO_PASSCODE" | tr -d '\n' | base64)
yq eval '(.spec.otlp.headers.Authorization = "Basic '${OO_TOKEN}'") as $auth | select(.kind == "Output") | $auth' -i ./demo.yaml


# Install prerequisites
Expand All @@ -149,7 +150,7 @@ kubectl wait --namespace opentelemetry-operator-system --for=condition=available
(cd ../../.. && make manifests generate install)

cd ../../../ && make docker-build
kind load docker-image controller:latest --name "${KIND_CLUSTER_NAME}"
kind load docker-image controller:local --name "${KIND_CLUSTER_NAME}"
make deploy && cd -

kubectl apply -f ./demo.yaml
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/simple-demo/openobserve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ spec:
# terminationGracePeriodSeconds: 0
containers:
- name: openobserve
image: public.ecr.aws/zinclabs/openobserve:v0.7.2
image: public.ecr.aws/zinclabs/openobserve:v0.14.0
env:
- name: ZO_ROOT_USER_EMAIL
value: [email protected]
Expand Down
Loading