Skip to content

Commit

Permalink
Update target location for ekcstl for Darwin amd64 builds (#516)
Browse files Browse the repository at this point in the history
* Update target location for ekcstl for Darwin amd64 builds

We determine the system architecture through 'uname -m' which outputs x86_64 for Mac's w/ intel chips.
This changes the target location name to match that output so the script can find/use it later.

* update eks package to get kubeconfig when done

Co-authored-by: Minimind <[email protected]>
  • Loading branch information
YrrepNoj and jeff-mccoy authored Jun 17, 2022
1 parent 944961e commit 8f198ba
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/distros/eks/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ components:
after:
# Remove existing eksctl
- "rm -f eksctl"
# Extract the correct linux or mac binary from the tarball
# Extract the correct linux or mac binary from the tarball
- "./zarf tools archiver decompress archives/eksctl_$(uname -s)_$(uname -m).tar.gz ."
# Cleanup temp files
- "rm -fr archives"
files:
- source: eks.yaml
target: eks.yaml
- source: https://github.com/weaveworks/eksctl/releases/download/v0.93.0/eksctl_Darwin_amd64.tar.gz
target: archives/eksctl_Darwin_amd64.tar.gz
target: archives/eksctl_Darwin_x86_64.tar.gz
shasum: 4ab4c9199ef4fcb26e3b536484773c0c4c648290e2341585c6bd5bfd79d44fb1
- source: https://github.com/weaveworks/eksctl/releases/download/v0.93.0/eksctl_Darwin_arm64.tar.gz
target: archives/eksctl_Darwin_arm64.tar.gz
Expand All @@ -37,4 +37,6 @@ components:
before:
- "./eksctl create cluster --dry-run -f eks.yaml"
- "sleep 15"
- "./eksctl create cluster -f eks.yaml"
- "./eksctl create cluster -f eks.yaml"
after:
- "./eksctl utils write-kubeconfig -c CHANGE_ME"

0 comments on commit 8f198ba

Please sign in to comment.