-
Notifications
You must be signed in to change notification settings - Fork 194
feat: add arch variable to variables #3935
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
base: main
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for zarf-docs canceled.
|
Added injector logic |
Codecov ReportAttention: Patch coverage is
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
c715385
to
238956a
Compare
Hm, so I after reviewing the logs from the last e2e test I see that for the arch value was not being passed along correctly. I updated the logic such that the injector, docker registry, and gitea all get deployed.... however the agent gets deployed fine once, however during part of the |
I updated this PR so now Edit: Though, I am getting the following error when doing an end-2-end test:
|
This seems like it'll be a huge value add for Zarf, thanks for the PR. Once CI is passing, I'll try to test locally and send you an updated eks.yaml which would let us spin up a multi-arch cluster so we can have a proper e2e test. |
Yea no problem! This does not fully address having a truly multi-arch support, but is a step in that direction. (A bit selfishly I would love to see zarf running a multi-arch cluster at home, RPI and intel NUC) |
Todo: update the variable to |
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.
A few small notes, I will make it an action item on my side to get you a new eks.yaml that can properly test a multi-node cluster with Zarf
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.
Realized something after https://github.com/zarf-dev/zarf/actions/runs/16351367206/job/46203688496 failed
Signed-off-by: Allen Conlon <[email protected]>
@@ -263,6 +263,9 @@ func (c *Cluster) getInjectorImageAndNode(ctx context.Context, resReq *v1ac.Reso | |||
if err != nil { | |||
return "", "", err | |||
} | |||
if nodeDetails.Status.NodeInfo.Architecture != architecture { |
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.
Out of an abundance of caution we should not continue if nodeDetails.Status.NodeInfo.Architecture
=="". Hopefully that never happens, but I don't want to break anybody if they're on a cluster where this isn't set for some reason.
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.
So I believe that this is a result of using a bare-bones "cluster" for tests. I believe that a really node will always have an Architecture.... I will do some research to verify that though
Signed-off-by: Allen Conlon <[email protected]>
Description
This PR adds in the zarf variable
ZARF_ARCHITECTURE
, this helps with deploying the zarf package into a multi-arch cluster.Related Issue
Relates to #3817
Checklist before merging