Skip to content

Commit 8498956

Browse files
authored
Update manifests to support arm64 nodes
The script was downloading the binary for amd64 by default, even when running ArgoCD on arm64 nodes
1 parent b046a7d commit 8498956

File tree

3 files changed

+28
-8
lines changed

3 files changed

+28
-8
lines changed

docs/installation.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,14 @@ spec:
8282
- name: AVP_VERSION
8383
value: "1.18.0"
8484
args:
85-
- >-
85+
- |
86+
ARCH=$(uname -m)
87+
case $ARCH in
88+
aarch64) ARCH="arm64";;
89+
x86_64) ARCH="amd64";;
90+
esac
8691
wget -O argocd-vault-plugin
87-
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_amd64 &&
92+
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_$ARCH &&
8893
chmod +x argocd-vault-plugin &&
8994
mv argocd-vault-plugin /custom-tools/
9095
volumeMounts:
@@ -193,8 +198,13 @@ spec:
193198
value: 1.18.0
194199
command: [sh, -c]
195200
args:
196-
- >-
197-
curl -L https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v$(AVP_VERSION)/argocd-vault-plugin_$(AVP_VERSION)_linux_amd64 -o argocd-vault-plugin &&
201+
- |
202+
ARCH=$(uname -m)
203+
case $ARCH in
204+
aarch64) ARCH="arm64";;
205+
x86_64) ARCH="amd64";;
206+
esac
207+
curl -L https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v$(AVP_VERSION)/argocd-vault-plugin_$(AVP_VERSION)_linux_$ARCH -o argocd-vault-plugin &&
198208
chmod +x argocd-vault-plugin &&
199209
mv argocd-vault-plugin /custom-tools/
200210
volumeMounts:

manifests/cmp-configmap/argocd-repo-server-deploy.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ spec:
3131
- name: AVP_VERSION
3232
value: "1.18.0"
3333
args:
34-
- >-
34+
- |
35+
ARCH=$(uname -m)
36+
case $ARCH in
37+
aarch64) ARCH="arm64";;
38+
x86_64) ARCH="amd64";;
39+
esac
3540
wget -O argocd-vault-plugin
36-
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_amd64 &&
41+
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_$ARCH &&
3742
chmod +x argocd-vault-plugin &&
3843
mv argocd-vault-plugin /custom-tools/
3944
volumeMounts:

manifests/cmp-sidecar/argocd-repo-server.yaml

+7-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,13 @@ spec:
2828
value: 1.18.0
2929
command: [sh, -c]
3030
args:
31-
- >-
32-
curl -L https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v$(AVP_VERSION)/argocd-vault-plugin_$(AVP_VERSION)_linux_amd64 -o argocd-vault-plugin &&
31+
- |
32+
ARCH=$(uname -m)
33+
case $ARCH in
34+
aarch64) ARCH="arm64";;
35+
x86_64) ARCH="amd64";;
36+
esac
37+
curl -L https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v$(AVP_VERSION)/argocd-vault-plugin_$(AVP_VERSION)_linux_$ARCH -o argocd-vault-plugin &&
3338
chmod +x argocd-vault-plugin &&
3439
mv argocd-vault-plugin /custom-tools/
3540

0 commit comments

Comments
 (0)