Skip to content

Add multiarch support and docker manifests #336

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

Closed
wants to merge 1 commit into from

Conversation

Sh4d1
Copy link
Member

@Sh4d1 Sh4d1 commented Aug 24, 2019

Fixes #135

This is #250 rebased on master with some additional fixes to make it work. (I was planning on making a PR on the fork of @mkumatag but he has to rebase his branch in ordre to merge it so creating a new PR sounded easier. (So most of the work was done by @mkumatag 😅)

Fixes: kubernetes/kubernetes#73364

@k8s-ci-robot
Copy link
Contributor

Welcome @Sh4d1!

It looks like this is your first PR to kubernetes/node-problem-detector 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/node-problem-detector has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 24, 2019
@k8s-ci-robot
Copy link
Contributor

Hi @Sh4d1. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 24, 2019
@Sh4d1
Copy link
Member Author

Sh4d1 commented Aug 24, 2019

@Random-Liu @dchen1107 possible to get an ok to test?

@mkumatag
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 27, 2019
@Sh4d1
Copy link
Member Author

Sh4d1 commented Aug 27, 2019

Hmm it seems the failure are quite random 🤔

@Sh4d1
Copy link
Member Author

Sh4d1 commented Aug 29, 2019

So blocked by kubernetes/test-infra#14091 for now

@Sh4d1
Copy link
Member Author

Sh4d1 commented Oct 14, 2019

@andyxning so according to kubernetes/test-infra#14091 we need to setup GCB. Is this okay? If yes I'll add a cloudbuild.yaml and submit a PR to test-infra as well as creating a bucket on k8s.gcr.io.

@Sh4d1
Copy link
Member Author

Sh4d1 commented Oct 14, 2019

@dchen1107 @Random-Liu I'll ping you too 😅

@Sh4d1
Copy link
Member Author

Sh4d1 commented Nov 11, 2019

So I'll setup gcb and cross compiling next week :)

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 11, 2019
@Sh4d1
Copy link
Member Author

Sh4d1 commented Jan 7, 2020

It seems really hard to do it in Prow (can't statically cross-compile thanks to go-systemd). I'll try to get some GCB runners for this project!

@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 15, 2020
@Sh4d1
Copy link
Member Author

Sh4d1 commented Mar 15, 2020

Once kubernetes/test-infra#16790 is merged, it should be good to go
/cc @xueweiz

@k8s-ci-robot k8s-ci-robot requested a review from xueweiz March 15, 2020 09:47
@Sh4d1 Sh4d1 force-pushed the fat-manifets branch 4 times, most recently from 01b1d68 to 127d956 Compare March 15, 2020 11:21
@xueweiz
Copy link
Contributor

xueweiz commented Mar 17, 2020

Thanks for the explanation! I have never done multiarch work before, so I need to do some homework to learn about how other k8s projects support this.

Cross build does not work so we need to use qemu, and to do so we need to use cloubuild :)

This is the part I would need to learn more about :) Do you know any other k8s projects doing similar thing? If so, could you provide some reference (Makefile, PR, etc)? Then I could study them as a reference.

Thanks!

@Sh4d1
Copy link
Member Author

Sh4d1 commented Mar 17, 2020

I've done quite the same with kubernetes-sigs/apiserver-network-proxy#38 and kubernetes-sigs/metrics-server#467

Not sure how other are doing it (iirc I took some inspiration from another k8s project, but can't recall which one 😅 )

Cross build is not working with npd because of systemd dependencies and some CGO code.

But the basics of multi arch is to build each arch and then create a docker manifest (with the docker manifest) command and just push it :)

@xueweiz
Copy link
Contributor

xueweiz commented Mar 17, 2020

This is great! Thanks for the pointers. I'll update (hopefully soon) when I finishes the homework.

/assign @xueweiz

@Sh4d1
Copy link
Member Author

Sh4d1 commented Mar 17, 2020

Just ping if you have any questions 😄

@mkumatag
Copy link
Member

@Random-Liu @xueweiz all good for you?
/cc @mkumatag

code seems okay to me,

@nvtkaszpir
Copy link
Member

fixes #135

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 30, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Sh4d1
To complete the pull request process, please assign xueweiz
You can assign the PR to them by writing /assign @xueweiz in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link
Contributor

k8s-ci-robot commented Mar 30, 2020

@Sh4d1: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci-npd-e2e-test 7849b49 link /test ci-npd-e2e-test

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

Signed-off-by: Patrik Cyvoct <[email protected]>
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 30, 2020
@Sh4d1
Copy link
Member Author

Sh4d1 commented Apr 3, 2020

@xueweiz any news?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jul 2, 2020
@k8s-ci-robot
Copy link
Contributor

@Sh4d1: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@nvtkaszpir
Copy link
Member

/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 3, 2020
@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 1, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 31, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable "SystemLogMonitor [It] should generate node condition and events for corresponding errors" on non-amd platform ARM version
6 participants