1
0
Fork 0

app/matrix/telegram: re-pin alpine to 3.13

Newer versions of alpine edge repos have a `yq` that behaves oddly:

    $ kubectl -n matrix-0x3c logs -f appservice-telegram-prod-85d66696c6-9drnl -c generate-config
    + apk add --no-cache yq
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
    fetch https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
    (1/1) Installing yq (4.4.1-r0)
    Executing busybox-1.31.1-r21.trigger
    ERROR: busybox-1.31.1-r21.trigger: script exited with error 127
    OK: 11 MiB in 15 packages
    + cp /config/config.yaml /data/config.yaml
    + yq r /registration/registration.yaml as_token
    Error: unknown command "r" for "yq"
    Run 'yq --help' for usage.
    + yq w -i /data/config.yaml appservice.as_token
    Error: unknown command "w" for "yq"
    Run 'yq --help' for usage.

This downgrades back to a working yq.

Change-Id: Ifc77bcc88156b02f3ec17e6f84c5615149108777
master
q3k 2021-02-08 17:53:44 +01:00
parent c9f48fee70
commit 34f56935b9
1 changed files with 1 additions and 3 deletions

View File

@ -113,9 +113,7 @@ local kube = import "../../../kube/kube.libsonnet";
registration: { mountPath: "/registration", },
data: { mountPath: "/data" },
},
// Ow, the edge! We need yq.
// See: https://github.com/mikefarah/yq/issues/190#issuecomment-667519015
image: "alpine@sha256:156f59dc1cbe233827642e09ed06e259ef6fa1ca9b2e29d52ae14d5e7b79d7f0",
image: "alpine:3.13",
command: [
"sh", "-c", |||
set -e -x