Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 1bedd5a

Browse files
authored
Merge pull request #79 from chuckha/image-restarting
Fix up image restart process
2 parents 40fcceb + bde3e37 commit 1bedd5a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ COPY kubeadm/ kubeadm/
2222

2323
# Allow containerd to restart pods by calling /restart.sh (mostly for tilt + fast dev cycles)
2424
# TODO: Remove this on prod and use a multi-stage build
25-
COPY third_party/forked/rerun-process-wrapper/start.sh /start.sh
26-
COPY third_party/forked/rerun-process-wrapper/restart.sh /restart.sh
25+
COPY third_party/forked/rerun-process-wrapper/start.sh .
26+
COPY third_party/forked/rerun-process-wrapper/restart.sh .
2727

2828
# Build and run
2929
RUN go install -v .
3030
RUN mv /go/bin/cluster-api-bootstrap-provider-kubeadm /manager
31-
ENTRYPOINT ["/start.sh", "/manager"]
31+
ENTRYPOINT ["./start.sh", "/manager"]

config/manager/manager.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ spec:
2323
control-plane: controller-manager
2424
spec:
2525
containers:
26-
- command:
27-
- /manager
28-
args:
26+
- args:
2927
- --enable-leader-election
3028
image: controller:latest
3129
imagePullPolicy: Always

0 commit comments

Comments
 (0)