Skip to content

Commit 763e75b

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. Also if we take this in it will not going to have any effect on created bundle until we implement the logic on crc side and it will be just a unused extra file in the bundle. - crc-org/crc#3502
1 parent f9044b4 commit 763e75b

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
@@ -116,6 +116,9 @@ cat crio-wipe.service | ${SSH} core@${VM_IP} "sudo tee -a /etc/systemd/system/cr
116116

117117
# Preload routes controller
118118
${SSH} core@${VM_IP} -- "sudo podman pull quay.io/crcont/routes-controller:${image_tag}"
119+
TAG=${image_tag} envsubst < route_controller.yaml.in > $INSTALL_DIR/route_controller.yaml
120+
${SCP} $INSTALL_DIR/route_controller.yaml core@${VM_IP}:/home/core/
121+
${SSH} core@${VM_IP} -- 'sudo mkdir -p /opt/crc && sudo mv /home/core/route_controller.yaml /opt/crc/'
119122

120123
if [ ${BUNDLE_TYPE} != "microshift" ]; then
121124
# 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)