Skip to content

Commit

Permalink
Update manifests to support arm64 nodes
Browse files Browse the repository at this point in the history
The script was downloading the binary for amd64 by default, even when running ArgoCD on arm64 nodes
  • Loading branch information
ItalyPaleAle authored Nov 17, 2024
1 parent b046a7d commit 8498956
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
18 changes: 14 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,14 @@ spec:
- name: AVP_VERSION
value: "1.18.0"
args:
- >-
- |
ARCH=$(uname -m)
case $ARCH in
aarch64) ARCH="arm64";;
x86_64) ARCH="amd64";;
esac
wget -O argocd-vault-plugin
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_amd64 &&
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_$ARCH &&
chmod +x argocd-vault-plugin &&
mv argocd-vault-plugin /custom-tools/
volumeMounts:
Expand Down Expand Up @@ -193,8 +198,13 @@ spec:
value: 1.18.0
command: [sh, -c]
args:
- >-
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 &&
- |
ARCH=$(uname -m)
case $ARCH in
aarch64) ARCH="arm64";;
x86_64) ARCH="amd64";;
esac
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 &&
chmod +x argocd-vault-plugin &&
mv argocd-vault-plugin /custom-tools/
volumeMounts:
Expand Down
9 changes: 7 additions & 2 deletions manifests/cmp-configmap/argocd-repo-server-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ spec:
- name: AVP_VERSION
value: "1.18.0"
args:
- >-
- |
ARCH=$(uname -m)
case $ARCH in
aarch64) ARCH="arm64";;
x86_64) ARCH="amd64";;
esac
wget -O argocd-vault-plugin
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_amd64 &&
https://github.com/argoproj-labs/argocd-vault-plugin/releases/download/v${AVP_VERSION}/argocd-vault-plugin_${AVP_VERSION}_linux_$ARCH &&
chmod +x argocd-vault-plugin &&
mv argocd-vault-plugin /custom-tools/
volumeMounts:
Expand Down
9 changes: 7 additions & 2 deletions manifests/cmp-sidecar/argocd-repo-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,13 @@ spec:
value: 1.18.0
command: [sh, -c]
args:
- >-
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 &&
- |
ARCH=$(uname -m)
case $ARCH in
aarch64) ARCH="arm64";;
x86_64) ARCH="amd64";;
esac
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 &&
chmod +x argocd-vault-plugin &&
mv argocd-vault-plugin /custom-tools/
Expand Down

0 comments on commit 8498956

Please sign in to comment.