-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add crictl from cri-tools, to minikube.iso
We don't need critest, because it requires go anyway. But kubeadm insists on crictl being available in path.
- Loading branch information
1 parent
df1653c
commit 15c9c8d
Showing
4 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
config BR2_PACKAGE_CRI_TOOLS | ||
bool "cri-tools" | ||
default y | ||
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS | ||
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sha256 e83b5a8ff6fc2c98c3463600e74a86d7dbbea6330f883cd5663cbd59641a8086 v0.2.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
################################################################################ | ||
# | ||
# cri-tools | ||
# | ||
################################################################################ | ||
|
||
CRI_TOOLS_VERSION = v0.2 | ||
CRI_TOOLS_SITE = https://github.com/kubernetes-incubator/cri-tools/archive | ||
CRI_TOOLS_SOURCE = $(CRI_TOOLS_VERSION).tar.gz | ||
CRI_TOOLS_LICENSE = Apache-2.0 | ||
CRI_TOOLS_LICENSE_FILES = LICENSE | ||
CRI_TOOLS_DEPENDENCIES = | ||
CRI_TOOLS_GOPATH = $(@D)/_output | ||
CRI_TOOLS_ENV = \ | ||
CGO_ENABLED=1 \ | ||
GOPATH="$(CRI_TOOLS_GOPATH)" \ | ||
PATH=$(CRI_TOOLS_GOPATH)/bin:$(BR_PATH) | ||
|
||
|
||
define CRI_TOOLS_CONFIGURE_CMDS | ||
mkdir -p $(CRI_TOOLS_GOPATH)/src/github.com/kubernetes-incubator | ||
ln -sf $(@D) $(CRI_TOOLS_GOPATH)/src/github.com/kubernetes-incubator/cri-tools | ||
endef | ||
|
||
define CRI_TOOLS_BUILD_CMDS | ||
$(CRI_TOOLS_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) crictl | ||
endef | ||
|
||
define CRI_TOOLS_INSTALL_TARGET_CMDS | ||
$(INSTALL) -Dm755 \ | ||
$(CRI_TOOLS_GOPATH)/bin/crictl \ | ||
$(TARGET_DIR)/usr/bin/crictl | ||
endef | ||
|
||
$(eval $(generic-package)) |