mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-20 02:11:09 +00:00
Update instructions to install cfssl
Use the newer "go install" variant as we are above go 1.18 Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
parent
cac53883f4
commit
5fd6b0a980
@ -670,7 +670,7 @@ function kube::util::ensure-cfssl {
|
|||||||
if [[ "${host_arch}" != "amd64" ]]; then
|
if [[ "${host_arch}" != "amd64" ]]; then
|
||||||
echo "Cannot download cfssl on non-amd64 hosts and cfssl does not appear to be installed."
|
echo "Cannot download cfssl on non-amd64 hosts and cfssl does not appear to be installed."
|
||||||
echo "Please install cfssl and cfssljson and verify they are in \$PATH."
|
echo "Please install cfssl and cfssljson and verify they are in \$PATH."
|
||||||
echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go get -u github.com/cloudflare/cfssl/cmd/..."
|
echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go install github.com/cloudflare/cfssl/cmd/...@latest"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -708,7 +708,7 @@ function kube::util::ensure-cfssl {
|
|||||||
CFSSLJSON_BIN="${cfssldir}/cfssljson"
|
CFSSLJSON_BIN="${cfssldir}/cfssljson"
|
||||||
if [[ ! -x ${CFSSL_BIN} || ! -x ${CFSSLJSON_BIN} ]]; then
|
if [[ ! -x ${CFSSL_BIN} || ! -x ${CFSSLJSON_BIN} ]]; then
|
||||||
echo "Failed to download 'cfssl'. Please install cfssl and cfssljson and verify they are in \$PATH."
|
echo "Failed to download 'cfssl'. Please install cfssl and cfssljson and verify they are in \$PATH."
|
||||||
echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go get -u github.com/cloudflare/cfssl/cmd/..."
|
echo "Hint: export PATH=\$PATH:\$GOPATH/bin; go install github.com/cloudflare/cfssl/cmd/...@latest"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
popd > /dev/null || return 1
|
popd > /dev/null || return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user