forked from TraceMachina/nativelink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
01_operations.sh
executable file
·41 lines (33 loc) · 1.1 KB
/
01_operations.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# This script configures a cluster with a few standard deployments.
# TODO(aaronmondal): Add Grafana, OpenTelemetry and the various other standard
# deployments one would expect in a cluster.
set -xeuo pipefail
SRC_ROOT=$(git rev-parse --show-toplevel)
EVENTLISTENER=$(kubectl get gtw eventlistener -o=jsonpath='{.status.addresses[0].value}')
curl -v \
-H 'content-Type: application/json' \
-d '{
"flakeOutput": "./src_root#image",
"imageTagOverride": "local"
}' \
http://${EVENTLISTENER}:8080
curl -v \
-H 'content-Type: application/json' \
-d '{
"flakeOutput": "./src_root#nativelink-worker-lre-cc",
"imageTagOverride": "local"
}' \
http://${EVENTLISTENER}:8080
curl -v \
-H 'content-Type: application/json' \
-d '{
"flakeOutput": "./src_root#nativelink-worker-lre-java",
"imageTagOverride": "local"
}' \
http://${EVENTLISTENER}:8080
# Wait for the pipelines to finish.
kubectl wait \
--for=condition=Succeeded \
--timeout=30m \
pipelinerun \
-l tekton.dev/pipeline=rebuild-nativelink