Skip to content

Commit 5ecf3ba

Browse files
Simon Emmsroboquat
Simon Emms
authored andcommitted
[kots]: move the openssh installation to the container image
1 parent 08e488f commit 5ecf3ba

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

install/installer/leeway.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FROM alpine:3.16
66
COPY --from=alpine/helm:3.8.0 /usr/bin/helm /usr/bin/helm
77
COPY install-installer--app/installer install-installer--app/provenance-bundle.jsonl /app/
8-
RUN apk add --no-cache curl jq yq \
8+
RUN apk add --no-cache curl jq openssh-keygen yq \
99
&& curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o /usr/local/bin/kubectl \
1010
&& chmod +x /usr/local/bin/kubectl
1111
ENTRYPOINT [ "/app/installer" ]

install/kots/manifests/gitpod-installation-status.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ spec:
3030
containers:
3131
- name: installation-status
3232
# This will normally be the release tag
33-
image: "eu.gcr.io/gitpod-core-dev/build/installer:release-2022.04.1.2"
33+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-airgap-openssh.0"
3434
command:
3535
- /bin/sh
3636
- -c

install/kots/manifests/gitpod-installer-job.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ spec:
2828
containers:
2929
- name: installer
3030
# This will normally be the release tag
31-
image: "eu.gcr.io/gitpod-core-dev/build/installer:release-2022.04.1.2"
31+
image: "eu.gcr.io/gitpod-core-dev/build/installer:sje-airgap-openssh.0"
3232
volumeMounts:
3333
- mountPath: /config-patch
3434
name: config-patch
@@ -211,7 +211,6 @@ spec:
211211
if [ '{{repl ConfigOptionEquals "ssh_gateway" "1" }}' = "true" ];
212212
then
213213
echo "Gitpod: Generate SSH host key"
214-
apk update && apk add --no-cache openssh-keygen # TODO: Move installation of openssh-keygen to installer image
215214
ssh-keygen -t rsa -q -N "" -f host.key
216215
kubectl create secret generic ssh-gateway-host-key --from-file=host.key -n {{repl Namespace }} || echo "SSH Gateway Host Key secret has not been created. Does it exist already?"
217216
yq e -i '.sshGatewayHostKey.kind = "secret"' "${CONFIG_FILE}"

0 commit comments

Comments
 (0)