Skip to content

Commit 7022bb5

Browse files
committed
Add route controller resource to bundle
This PR adds deployment resource for route controller which use correct image tag, what we cached. Once the bundle is created using this PR, we will also need to make change on crc side. The resource file is located in `/opt/crc` dir. - crc-org/crc#3502
1 parent 6575a3c commit 7022bb5

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

createdisk.sh

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ cat crio-wipe.service | ${SSH} core@${VM_IP} "sudo tee -a /etc/systemd/system/cr
112112

113113
# Preload routes controller
114114
${SSH} core@${VM_IP} -- "sudo podman pull quay.io/crcont/routes-controller:${image_tag}"
115+
TAG=${image_tag} envsubst < route_controller.yaml.in > $INSTALL_DIR/route_controller.yaml
116+
${SCP} $INSTALL_DIR/route_controller.yaml core@${VM_IP}:/home/core/
117+
${SSH} core@${VM_IP} -- 'mkdir -p /opt/crc && sudo mv /home/core/route_controller.yaml /opt/crc/'
115118

116119
if [ ${BUNDLE_TYPE} != "microshift" ]; then
117120
# Add internalIP as node IP for kubelet systemd unit file

route_controller.yaml.in

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: apps/v1
2+
kind: Deployment
3+
metadata:
4+
labels:
5+
app: routes-controller
6+
name: routes-controller
7+
namespace: openshift-ingress
8+
spec:
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: routes-controller
13+
template:
14+
metadata:
15+
labels:
16+
app: routes-controller
17+
spec:
18+
containers:
19+
- image: quay.io/crcont/routes-controller:${TAG}
20+
name: routes-controller
21+
imagePullPolicy: IfNotPresent
22+

0 commit comments

Comments
 (0)