All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bruce Ashfield" <bruce.ashfield@gmail.com>
To: Joakim Roubert <joakim.roubert@axis.com>
Cc: "meta-virtualization@lists.yoctoproject.org"
	<meta-virtualization@lists.yoctoproject.org>
Subject: Re: [meta-virtualization][PATCH] Adding k3s recipe
Date: Fri, 25 Sep 2020 09:12:10 -0400	[thread overview]
Message-ID: <CADkTA4PNMnRJ3iZu0TvsK+8S_MMySNxx-=fk7rFuCCOStcRdWw@mail.gmail.com> (raw)
In-Reply-To: <8943d000-4ce1-164b-eb8e-2bedfaca2981@axis.com>

On Fri, Sep 25, 2020 at 2:20 AM Joakim Roubert <joakim.roubert@axis.com> wrote:
>
> On 2020-09-24 17:41, Bruce Ashfield wrote:
> >
> > There are at least two utilities that are shared with the main
> > kubernetes and not in our existing layer dependencies. We shouldn't
> > expand our dependencies more, so we have to look at importing a
> > variant of the recipes to meta-virt, or seeing about getting the
> > recipes into a more common location. In particular, I'm talking
> > about ipset and and upx, and I'm still looking for more.
>
> Ah, yes.
>
> > As for the service files, the k3s.service is different from the one
> > from the latest on the k3s 1.18 branch, and there's a patch that
> > modifies it. Although tempting to not use /usr/local/bin, for
> > maintenance, we'd be better off either just installing where things
> > are expected. Was something broken if /usr/local/bin was used ?
>
> The target systems I work on prohibits installations to /usr/local, so
> from my perspective something would in fact be broken if /usr/local/bin
> was to be used. Nevertheless, configuring the recipe to have
> /usr/{$VARIABLE}/bin and VARIABLE set to "local" as default would
> perhaps be an option for everybody to eat the cake and still have it?

Absolutely. I'm always in favour of making these configurable, so we
can let users customize as they see fit.

Alternatively, rather than substituting just the 'local', the path up to
'bin' could be controlled.  And by that, I mean a variable local to the
recipe, like you have above.

That allows the use of $bindir by default, and also covers the case
automatically where someone has changed $bindir to /usr/local/bin.

The local variable allows yet another override if the global $bindir
hasn't been changed, and you just want to modify it for this recipe
(which is actually what I think will be most common).

>
> > The other .service files, we have no idea where they come from by
> > looking at the series, and as such they need some sort of comment
> > (by looking at the repo, you can tell they are variants of the
> > k3s.service file, but that needs to be clarified).
>
> I will investigate.
>
> > The patches themselves to the code base (not just the overall git
> > commit) should have Signed-off-by: and Upstream-status: flags, so
> > they can be maintained as I bump through releases.
>
> I will see to that.
>
> > The scripts being created by the recipe, need license headers and
> > spdx tags. Boring, but it is something we want to make sure is in
> > new files.
>
> Absolutely!

I just had to go through the License / SPDX header addition for
hundreds of files. So I know what a pain this can be, so thanks!

>
> > Also, at a glance, we need to make sure the dependencies of the
> > scripts are captured in the DEPENDS of the recipe (i.e. I see 'ip'
> > being called, make sure that is captured).
>
> Ah, yes, I will go through that.
>
> > As for the networking, what we have in the submission is specific to
> > a setup, that's the parts that I'm really trying to unify. We need
> > to document what is expected in the CNI configuration, and then
> > control it via a distro/image flag such that it won't
> > clobber/conflict with other CNI users. I can take care of that distro
> > part, but the documentation would be ideal in a README that comes
> > along with the recipe.
>
> That also sounds like a good plan. I am not relly sure what text to
> write in that README file, though. But I guess that is something that
> can be iteratively created.

Absolutely. Just a stream of thoughts is fine for now, with a quick
overview, and perhaps a guideline on how to build a single node
system ? With a few notes about what is configured out of the box
and what we expect the end user to continue to configure / customize ?

That would be more than enough as a start.

Bruce

>
> > As I said, I'm still working through some of the factoring out and
> > de-duplication, but there's some things in there that are best done
> > on your end, versus mine.
>
> Excellent!
>
> BR,
>
> /Joakim



-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

  reply	other threads:[~2020-09-25 13:12 UTC|newest]

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200821205529.29901-1-erik.jansson@axis.com>
2020-09-21  8:38 ` [meta-virtualization][PATCH] Adding k3s recipe Joakim Roubert
2020-09-21 11:11   ` Bruce Ashfield
2020-09-21 13:15     ` Joakim Roubert
2020-09-24 14:02       ` Bruce Ashfield
2020-09-24 14:46         ` Joakim Roubert
2020-09-24 15:41           ` Bruce Ashfield
2020-09-25  6:20             ` Joakim Roubert
2020-09-25 13:12               ` Bruce Ashfield [this message]
2020-09-25 13:50                 ` Joakim Roubert
     [not found]                 ` <16380B0CA000AB98.28124@lists.yoctoproject.org>
2020-09-28 13:48                   ` Joakim Roubert
2020-09-29 19:58                     ` Bruce Ashfield
2020-09-30  8:12                       ` Joakim Roubert
     [not found]                       ` <1639818C3E50A226.8589@lists.yoctoproject.org>
2020-09-30  8:14                         ` Joakim Roubert
2020-10-01 10:32                         ` Joakim Roubert
     [not found]                         ` <1639D7B9311FC65C.18704@lists.yoctoproject.org>
2020-10-01 10:32                           ` Joakim Roubert
2020-10-14 16:38                             ` Bruce Ashfield
2020-10-15 11:40                               ` Joakim Roubert
2020-10-15 11:47                               ` [meta-virtualization][PATCH v4] " Joakim Roubert
2020-10-15 15:02                                 ` Bruce Ashfield
2020-10-20 11:14                                   ` [meta-virtualization][PATCH v5] " Joakim Roubert
2020-10-21  3:10                                     ` Bruce Ashfield
2020-10-21  6:00                                       ` Joakim Roubert
2020-10-26 15:46                                         ` Bruce Ashfield
2020-10-28  8:32                                           ` Joakim Roubert
2020-11-06 21:20                                             ` Bruce Ashfield
2020-11-09  7:48                                               ` Joakim Roubert
2020-11-09  9:26                                                 ` Lance.Yang
2020-11-09 13:45                                                   ` Bruce Ashfield
2020-11-10  8:45                                                     ` Lance Yang
2020-11-09 13:44                                                 ` Bruce Ashfield
2020-11-10  6:43                                           ` Lance Yang
2020-11-10 12:46                                             ` Bruce Ashfield
     [not found]                                             ` <16462648E2B320A8.24110@lists.yoctoproject.org>
2020-11-10 13:17                                               ` Bruce Ashfield
2020-11-12  7:30                                                 ` Lance Yang
2020-11-12 13:38                                                   ` Bruce Ashfield
2020-11-12 14:26                                                     ` [meta-virtualization][PATCH] k3s: Update README.md Joakim Roubert
2020-11-17 12:39                                                     ` [meta-virtualization][PATCH] k3s: Bump to v1.19.3+k3s3 Joakim Roubert
2020-11-17 13:27                                                       ` Bruce Ashfield
2020-11-17 13:31                                                         ` Joakim Roubert
2020-11-17 13:40                                                           ` Bruce Ashfield
2020-11-17 13:50                                                             ` Joakim Roubert
2020-11-17 14:15                                                               ` Bruce Ashfield
     [not found]                                                               ` <16485135E3A12798.28066@lists.yoctoproject.org>
2020-11-17 14:19                                                                 ` Bruce Ashfield
2020-11-17 14:27                                                                   ` Joakim Roubert
2020-11-17 14:41                                                                     ` Bruce Ashfield
     [not found]                                                                     ` <1648529A6FD37D30.5807@lists.yoctoproject.org>
2020-11-17 19:39                                                                       ` Bruce Ashfield
2020-11-18 18:27                                                                         ` Joakim Roubert
2020-11-18 20:38                                                                           ` Bruce Ashfield
2020-12-11  6:31                                                                             ` Lance Yang
2020-12-11 13:43                                                                               ` Bruce Ashfield
2020-12-15  9:56                                                                                 ` Lance Yang
2020-12-15 18:58                                                                                   ` Bruce Ashfield
2020-12-18 14:23                                                                                     ` Joakim Roubert
2020-12-22 16:15                                                                                       ` Bruce Ashfield
2021-01-04  7:12                                                                                         ` Joakim Roubert
2021-01-04 13:40                                                                                           ` Bruce Ashfield
     [not found]                                                                                           ` <16570B29E8680DE8.14857@lists.yoctoproject.org>
2021-01-05 13:58                                                                                             ` Bruce Ashfield
     [not found]                                                     ` <16484BFA14ED0B17.5807@lists.yoctoproject.org>
2020-11-17 13:05                                                       ` Joakim Roubert
2020-11-12 13:43                                                   ` [meta-virtualization][PATCH v5] Adding k3s recipe Joakim Roubert
2020-11-13  5:48                                                     ` Lance Yang
2020-11-13  6:20                                                       ` Bruce Ashfield
2020-11-12 13:40                                                 ` Joakim Roubert
     [not found]                                               ` <164627F27D18DB55.10479@lists.yoctoproject.org>
2020-11-10 13:34                                                 ` Bruce Ashfield
2020-11-11 10:06                                                   ` Lance Yang
2020-11-11 13:40                                                     ` Bruce Ashfield
2020-11-12  7:04                                                       ` Lance Yang
2020-11-12 13:40                                                         ` Bruce Ashfield
2020-11-12 14:07                                                           ` Lance Yang
2020-11-17 14:13                                                         ` Joakim Roubert
2021-03-13 19:30                                                           ` Bruce Ashfield
2021-03-14  4:32                                                             ` Yocto
2021-03-15  9:46                                                             ` Joakim Roubert
2020-10-13 12:22                     ` [meta-virtualization][PATCH] " Bruce Ashfield
2020-08-21 20:59 Erik Jansson
2020-08-21 21:11 ` Bruce Ashfield
2020-08-30  8:17   ` [PATCH] " Robert Berger
2020-08-30 15:40     ` [meta-virtualization] " Bruce Ashfield
2020-09-02  5:51       ` Joakim Roubert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADkTA4PNMnRJ3iZu0TvsK+8S_MMySNxx-=fk7rFuCCOStcRdWw@mail.gmail.com' \
    --to=bruce.ashfield@gmail.com \
    --cc=joakim.roubert@axis.com \
    --cc=meta-virtualization@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.