cni-route-override: new package
route-override IPAM works as meta CNI plugin to override IP route given by previous CNI plugins. It is useful in a case with network-attachment-definition. Currently route-override verified its feature with podman and crio(with Kubernetes). Signed-off-by: Oskari Rauta <oskari.rauta@gmail.com>
This commit is contained in:
parent
09ac45ad50
commit
61143fc8b9
1 changed files with 46 additions and 0 deletions
46
net/cni-route-override/Makefile
Normal file
46
net/cni-route-override/Makefile
Normal file
|
@ -0,0 +1,46 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=cni-route-override
|
||||
PKG_VERSION:=0.1
|
||||
PKG_RELEASE:=$(AUTORELEASE)
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/redhat-nfvpe/$(PKG_NAME).git
|
||||
PKG_SOURCE_DATE:=2021-11-29
|
||||
PKG_SOURCE_VERSION:=6263d6876c6aa52d6b660e4b54da6b0b58b04022
|
||||
PKG_MIRROR_HASH:=c74763b44b2b97927a75aecc8d2e2681784888e20be1a456c34a270fd642d1f0
|
||||
|
||||
PKG_MAINTAINER:=Oskari Rauta <oskari.rauta@gmail.com>
|
||||
PKG_LICENSE:=Apache-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
|
||||
PKG_BUILD_DEPENDS:=golang/host
|
||||
PKG_BUILD_PARALLEL:=1
|
||||
PKG_USE_MIPS16:=0
|
||||
|
||||
GO_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/
|
||||
GO_PKG_BUILD_PKG:=github.com/redhat-nfvpe/$(PKG_NAME)/cmd/route-override
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include ../../lang/golang/golang-package.mk
|
||||
|
||||
define Package/cni-route-override
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=Meta CNI plugin for overriding IP route
|
||||
URL:=https://github.com/redhat-nfvpe/cni-route-override/
|
||||
DEPENDS:=$(GO_ARCH_DEPENDS)
|
||||
endef
|
||||
|
||||
define Package/cni-route-override/description
|
||||
route-override IPAM works as meta CNI plugin to override IP route given by previous CNI plugins.
|
||||
endef
|
||||
|
||||
define Package/cni-route-override/install
|
||||
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))
|
||||
$(INSTALL_DIR) $(1)/usr/lib/cni
|
||||
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/lib/cni
|
||||
endef
|
||||
|
||||
$(eval $(call GoBinPackage,cni-route-override))
|
||||
$(eval $(call BuildPackage,cni-route-override))
|
Loading…
Reference in a new issue