Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 803866 - Feature request, subslot for kubernetes packages (sys-cluster/{kubeadm,kube-apiserver,kube-controller-manager,kubectl,kubelet,kube-proxy,kube-scheduler})
Summary: Feature request, subslot for kubernetes packages (sys-cluster/{kubeadm,kube-a...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-24 18:02 UTC by Alex Orange
Modified: 2021-09-10 18:55 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Orange 2021-07-24 18:02:34 UTC
Kubernetes has a versioning system x.y.z where the z can change without breaking anything (fairly typical). It would be nice if the x.y part would be put in a subslot for the packages below such that the specific subslot can be installed and upgraded within the subslot until a user is ready to upgrade their cluster.

sys-cluster/kubeadm
sys-cluster/kube-apiserver
sys-cluster/kube-controller-manager
sys-cluster/kubectl
sys-cluster/kubelet
sys-cluster/kube-proxy
sys-cluster/kube-scheduler
Comment 1 William Hubbs gentoo-dev 2021-09-10 18:15:17 UTC
I believe you will have to use /etc/portage/package.mask to
keep the versions of kubernetes you do not want from being installed,
regardless of whether I use subslots.

I haven't done a lot with slots or subslots, so I'm a bit at a loss for
how subslots would help in this case.
Comment 2 Alex Orange 2021-09-10 18:32:36 UTC
If it had subslots then I would install the subslot instead. I.e.

emerge -av sys-cluster/kubelet:1.20

instead of

emerge -av sys-cluster/kubelet

Having looked at an example on my machine I think it's SLOTS that I'm thinking of, not SUBSLOTS. From dev-ruby/sass it looks like SLOT="$(ver_cut 1-2)" could be used to do this.
Comment 3 Ionen Wolkens gentoo-dev 2021-09-10 18:46:48 UTC
subslots do allow for:

   emerge cat/pkg:0/subslot

But the difference is that this won't get recorded in world file, or not normally anyway (unless you edit yourself).

Firefox does something similar for ESR branch, e.g. 0/esr78

Is this what you still want? But simply masking versions you don't want may work better.

real SLOTs are intended for something entirely different and I don't think it can be used here
Comment 4 William Hubbs gentoo-dev 2021-09-10 18:55:32 UTC
Full slots are used to allow multiple versions of a package to be
installed, so they don't fit what you are wanting to do I don't think,
but you can use /etc/portage/package.mask to mask versions of k8s
you don't want installed.

Let me know if that works for you.