Skip to content

Commit 57b5bac

Browse files
committed
fix: use alpine to download KSOPS binaries instead of distroless image
1 parent 70a4a4d commit 57b5bac

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

bootstrap/argocd-config.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ spec:
3333
secret:
3434
secretName: sops-age-keys
3535
initContainers:
36+
# Use alpine to download and install KSOPS binaries
3637
- name: install-ksops
37-
image: viaductoss/ksops:latest-amd64
38+
image: docker.io/alpine:3.21
3839
command: ["/bin/sh", "-c"]
3940
args:
40-
- echo "Installing KSOPS..."; cp ksops /custom-tools/; cp $GOPATH/bin/kustomize /custom-tools/; echo "Done.";
41+
- |
42+
set -e
43+
echo "Downloading KSOPS v4.4.0..."
44+
wget -qO- https://github.com/viaduct-ai/kustomize-sops/releases/download/v4.4.0/ksops_4.4.0_Linux_x86_64.tar.gz | tar xz -C /custom-tools
45+
echo "Done."
4146
volumeMounts:
4247
- mountPath: /custom-tools
4348
name: custom-tools

0 commit comments

Comments
 (0)