forked from tensorflow/build
-
Notifications
You must be signed in to change notification settings - Fork 0
/
apply.sh
executable file
·33 lines (24 loc) · 878 Bytes
/
apply.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
#!/bin/bash
set -e
kubectl get pods --all-namespaces
# Create sig-build namespace first
kubectl apply -f namespace.yaml
# Permissions
kubectl apply -f role-admin.yaml
kubectl apply -f role-webhook.yaml
# Tasks for tf/build repo
kubectl apply -f build-tasks.yaml
kubectl apply -f build-pipeline.yaml
# Initial cluster setup should not apply build-triggers.
# Tne trigger event listener needs the validator image
# built first so kick off a PipelineRun to build everything,
# then apply the webhook and triggers later
if [[ $1 == "--install" ]]; then
# PipelineRun to build the linxcpu build image and webhook validator
kubectl apply -f build-pipeline-run.yaml
else
# Add GitHub webhook validator for trigger event-listener
kubectl apply -f webhook-deployment.yaml
# Triggers and ingress for GitHub webhook
kubectl apply -f build-triggers.yaml
fi