app-admin/kubectx - 0.11.0 (gentoo)

Search

Install

Install this version:

emerge -a =app-admin/kubectx-0.11.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =app-admin/kubectx-0.11.0

Or alternatively:

emerge --autounmask-write -a =app-admin/kubectx-0.11.0

Package Information

Description:
Fast way to switch between clusters and namespaces in kubectl
Homepage:
https://github.com/ahmetb/kubectx
License:
Apache-2.0 Apache-2.0 BSD ISC MIT

Ebuild Details

Version EAPI Keywords Slot
0.11.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module shell-completion

DESCRIPTION="Fast way to switch between clusters and namespaces in kubectl"
HOMEPAGE="https://github.com/ahmetb/kubectx"
SRC_URI="https://github.com/ahmetb/kubectx/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/gentoo-golang-dist/${PN}/releases/download/v${PV}/${P}-vendor.tar.xz"

LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD ISC MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

BDEPEND=">=dev-lang/go-1.25.0"

src_compile() {
	ego build -trimpath -ldflags "-w" ./cmd/{kubectx,kubens}
}

src_install() {
	dobin kubectx kubens

	newbashcomp completion/kubectx.bash kubectx
	newbashcomp completion/kubens.bash kubens
	bashcomp_alias kubectx kctx
	bashcomp_alias kubens kns
	newzshcomp completion/_kubectx.zsh _kubectx
	newzshcomp completion/_kubens.zsh _kubens
	dofishcomp completion/{kubectx,kubens}.fish
}

Inherited Eclasses

Dependencies

BDEPEND

>=dev-lang/go-1.25.0

Manifest for 0.11.0

Type File Size Source URLs
DIST kubectx-0.11.0.tar.gz 527548 bytes https://github.com/ahmetb/kubectx/archive/v0.11.0.tar.gz