Skip to content

Commit

Permalink
Merge pull request #127 from kube-logging/chore/bump-openobserve
Browse files Browse the repository at this point in the history
chore: bump openobserve
  • Loading branch information
csatib02 authored Dec 19, 2024
2 parents cc6d2c7 + c147d20 commit d25ab13
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
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: root@example.com
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 root@example.com:Complexpass#123 | jq .data.passcode -r)
OO_TOKEN=$(echo -n root@example.com:$OO_ORG_PWD | base64)
sed -i '' -e "s/Authorization.*/Authorization:\ \"Basic ${OO_TOKEN}\"/" ./demo.yaml
OO_USER="root@example.com"
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: root@example.com
Expand Down

0 comments on commit d25ab13

Please sign in to comment.