-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Flatcar support #7084
Flatcar support #7084
Conversation
Welcome @mazzy89! |
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. |
Hi @mazzy89. 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 Once the patch is verified, the new status will be reflected by the 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. |
1e60e63
to
75a7e6c
Compare
I've signed it |
Signed-off-by: Salvatore Mazzarino <[email protected]>
/assign @justinsb |
if b.Distribution == distros.DistributionFlatcar { | ||
// Flatcar does not ship with conntrack. Install our own (statically linked) version | ||
// TODO: Extract to common function? | ||
for _, binary := range []string{"conntrack"} { |
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.
I've checked and I've found out that Flatcar is shipped with socat
so it is not necessary to install it.
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.
That is really good news - the omission of socat was so surprising!
/ok-to-test |
Thank you @chrisz100. Ready to be merged. |
Can we include a section in the documentation for Flatcar? https://github.com/kubernetes/kops/blob/master/docs/images.md |
Yes sure. I will |
Signed-off-by: Salvatore Mazzarino <[email protected]>
Added a section in the doc |
/retest |
/assign @rifelpet |
@@ -52,6 +53,8 @@ func (d Distribution) BuildTags() []string { | |||
t = []string{"_rhel7"} | |||
case DistributionCoreOS: | |||
t = []string{"_coreos"} | |||
case DistributionFlatcar: | |||
t = []string{"_flatcar"} |
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.
Just FYI we hopefully aren't using these tags any more. But no problem with leaving this in for now and removing once we confirm we're not using tags :-)
if b.Distribution == distros.DistributionFlatcar { | ||
// Flatcar does not ship with conntrack. Install our own (statically linked) version | ||
// TODO: Extract to common function? | ||
for _, binary := range []string{"conntrack"} { |
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.
That is really good news - the omission of socat was so surprising!
Thanks @mazzy89 - looks good. I do wonder if we should fold some of the very similar code, but let's run with it and see how it evolves! /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb, mazzy89 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@mazzy89: The following test failed, say
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. |
Cherry pick of #7084 onto release-1.14
Recognize Flatcar (https://www.flatcar-linux.org/)
Flatcar is a friendly-fork of CoreOS.
It is very similar to CoreOS in terms of configuring it. However, I've decided anyway to treat like a different distribution and create different if-else branches.