Skip to content
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

Create await-node-ready binary and add to gateway and route-agent images #3237

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

tpantelis
Copy link
Contributor

@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr3237/tpantelis/await_mode_ready
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@@ -75,6 +75,8 @@ bin/%/submariner-route-agent: $(shell find pkg/routeagent_driver)
bin/%/submariner-globalnet: $(shell find pkg/globalnet)
GOARCH=$(call dockertogoarch,$(patsubst bin/linux/%/,%,$(dir $@))) ${SCRIPTS_DIR}/compile.sh $@ ./pkg/globalnet

bin/%/await-node-ready: $(shell find pkg/await_node_ready)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also uses pkg/node and pkg/versions.

Suggested change
bin/%/await-node-ready: $(shell find pkg/await_node_ready)
bin/%/await-node-ready: $(shell find pkg/await_node_ready pkg/node pkg/versions)

Copy link
Contributor Author

@tpantelis tpantelis Dec 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok but is that needed? Route agent only specifies $(shell find pkg/routeagent_driver) but it uses other packages as well. Same with globalnet - $(shell find pkg/globalnet). The executable binary runs fine locally.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn’t affect the binary that gets built, it only determines when it gets rebuilt. But this approach is inherently brittle, I’ve got a better one — let’s merge this and I’ll fix all the binaries properly.

@tpantelis tpantelis requested a review from aswinsuryan December 4, 2024 12:55
@submariner-bot submariner-bot added the ready-to-test When a PR is ready for full E2E testing label Dec 4, 2024
@tpantelis tpantelis merged commit d9a8a5d into submariner-io:devel Dec 5, 2024
42 checks passed
@submariner-bot
Copy link
Contributor

🤖 Closed branches: [z_pr3237/tpantelis/await_mode_ready]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-test When a PR is ready for full E2E testing
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants