Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PR #237 changed the base runtime image for the CNI init container from `debian:bullseye-slim` to `scratch`, in the hopes of reducing the dependency footprint of that image. Unfortunately, it turns out that this breaks the CNI init container, since it must execute shell scripts and therefore requires a shell (specifically, `bash`), which does not exist in the `scratch` image. This was not detected by CI in this repo on PR #237, because it turns out that the CI jobs don't actually try to run the CNI init container. Instead, we didn't discover that this breaks stuff until the change was fully integrated in linkerd/linkerd2#10855. This commit changes the base runtime image again, to `alpine:3.17.3`, similarly to the proxy-init dockerfile. We now install the necessary dependencies using `apk add` in the alpine layer. We also install `bash`, because Alpine doesn't ship with `bash` by default. This way, we should have a shell, and be able to run the install script again.
- Loading branch information