-
Notifications
You must be signed in to change notification settings - Fork 219
feat!: update injector to respect arch of package #4405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
a1994sc
wants to merge
3
commits into
zarf-dev:main
Choose a base branch
from
a1994sc:feature/allen/node-arch
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| name: Test multi-arch EKS Cluster | ||
| on: | ||
| schedule: | ||
| - cron: "0 7 * * *" ## Every day at 0700 UTC | ||
| workflow_dispatch: ## Give us the ability to run this manually | ||
| # pull_request: | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
|
|
||
| # Abort prior jobs in the same workflow / PR | ||
| concurrency: | ||
| group: e2e-eks-multi-arch-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| eks-nightly-test: | ||
| if: ${{ github.repository == 'zarf-dev/zarf' }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
|
|
||
| - name: Setup golang | ||
| uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | ||
| with: | ||
| go-version-file: go.mod | ||
|
|
||
| - name: Build binary and zarf packages | ||
| uses: ./.github/actions/packages | ||
|
|
||
| - name: Auth with AWS | ||
| uses: aws-actions/configure-aws-credentials@b47578312673ae6fa5b5096b330d9fbac3d116df # v4.2.1 | ||
| with: | ||
| role-to-assume: ${{ secrets.AWS_NIGHTLY_EKS_ROLE_ARN }} | ||
| role-session-name: ${{ github.job || github.event.client_payload.pull_request.head.sha || github.sha }} | ||
| aws-region: us-east-1 | ||
| role-duration-seconds: 7200 | ||
|
|
||
| - name: Download eksctl | ||
| run: | | ||
| curl -L -o eksctl_Linux_amd64.tar.gz \ | ||
| https://github.com/weaveworks/eksctl/releases/download/v0.170.0/eksctl_Linux_amd64.tar.gz | ||
| tar -xzf eksctl_Linux_amd64.tar.gz | ||
| chmod +x eksctl | ||
|
|
||
| - name: Create EKS config | ||
| run: | | ||
| cat <<EOF > eks.yaml | ||
| apiVersion: eksctl.io/v1alpha5 | ||
| kind: ClusterConfig | ||
| metadata: | ||
| name: zarf-nightly-multi-arch-e2e-test | ||
| region: us-east-1 | ||
| tags: | ||
| PermissionsBoundary: uds_permissions_boundary | ||
|
|
||
| iam: | ||
| serviceRolePermissionsBoundary: arn:aws:iam::205930641482:policy/uds_permissions_boundary | ||
| withOIDC: true | ||
|
|
||
| addons: | ||
| - name: aws-ebs-csi-driver | ||
| attachPolicyARNs: | ||
| - arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy | ||
| permissionsBoundary: "arn:aws:iam::205930641482:policy/uds_permissions_boundary" | ||
| tags: | ||
| PermissionsBoundary: "uds_permissions_boundary" | ||
|
|
||
| - name: vpc-cni | ||
| attachPolicyARNs: | ||
| - arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy | ||
| permissionsBoundary: "arn:aws:iam::205930641482:policy/uds_permissions_boundary" | ||
| tags: | ||
| PermissionsBoundary: "uds_permissions_boundary" | ||
|
|
||
| managedNodeGroups: | ||
| - instanceType: t3.medium | ||
| name: amd64-ng | ||
| minSize: 2 | ||
| maxSize: 2 | ||
| spot: true | ||
| tags: | ||
| PermissionsBoundary: "uds_permissions_boundary" | ||
| iam: | ||
| instanceRolePermissionsBoundary: "arn:aws:iam::205930641482:policy/uds_permissions_boundary" | ||
| - instanceType: "t4g.small" | ||
| name: arm64-ng | ||
| minSize: 2 | ||
| maxSize: 2 | ||
| spot: true | ||
| tags: | ||
| PermissionsBoundary: "uds_permissions_boundary" | ||
| iam: | ||
| instanceRolePermissionsBoundary: "arn:aws:iam::205930641482:policy/uds_permissions_boundary" | ||
| EOF | ||
|
|
||
| - name: create cluster | ||
| run: | | ||
| ./eksctl create cluster --dry-run --config-file eks.yaml | ||
| ./eksctl create cluster --config-file=eks.yaml | ||
|
|
||
| - name: init Zarf | ||
| run: | | ||
| ./build/zarf init --confirm | ||
|
|
||
| - name: teardown cluster | ||
| run: | | ||
| ./eksctl delete cluster --config-file=eks.yaml --disable-nodegroup-eviction --wait | ||
|
|
||
| - name: Send trigger to Slack on workflow failure | ||
| if: failure() | ||
| uses: ./.github/actions/slack | ||
| with: | ||
| slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Layout of the structure looks good. Quick passing thought of ensuring these items are indeed optional?
Ideally required items are function parameters and optional are in the options struct.
Another overlay may be deciding if we can set sane defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, gotcha, I think that makes sense too me... I will have to look up some examples on how to enforce certain fields are populated verses optional...
Thank you Brandt!
(P.S. If you have a more meaningful name for this struct feel free to drop it, I'm crap at naming stuff)