From b0bd1f118e4d635a4e51547ea6b9354dfb93d1bc Mon Sep 17 00:00:00 2001 From: Daniel Tomlinson Date: Sat, 27 May 2023 23:34:32 +0100 Subject: [PATCH] add package --- unraid-kind.plg | 104 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 104 insertions(+) create mode 100644 unraid-kind.plg diff --git a/unraid-kind.plg b/unraid-kind.plg new file mode 100644 index 0000000..73e2040 --- /dev/null +++ b/unraid-kind.plg @@ -0,0 +1,104 @@ + + + + + + + + + + + +]> + + + + +### 2023-05-27 +- Initial release - kind v0.19.0 + + + + + +&releaseURL; + + + +&releaseMD5URL; + + + + +local_package_file_md5=$(/usr/bin/md5sum &plugin;/&name;-&version;.txz) +remote_package_file_md5=$(/usr/bin/cat &name;-&version;.md5) + +if test $local_package_file_md5 != remote_package_file_md5 +then + echo "*** md5 of download package does not match - removing files and exiting ***" + rm &plugin;/&name;-&version;.txz + rm &name;-&version;.md5 + exit 1 +else + echo "*** md5 check successful ***" +fi + + + + + + + file=$(/usr/bin/ls /boot/config/plugins/&name;/&name;*.txz | grep -v '&version;') + if [ ! -z "$file" ] + then + filename=$(basename -- $file) + previous="${filename%.*}" + echo "*** previous version ${previous} found - uninstalling ***" + removepkg $previous + rm -f $file + else + echo "*** no previous version found - first time install ***" + fi + + + + + +upgradepkg --install-new &plugin;/&name;-&version;.txz + + + + + + +**kind** + +This is the repository for the unraid kind plugin. + + + +## description + +kind is a tool for running local Kubernetes clusters using Docker container “nodes”. +kind was primarily designed for testing Kubernetes itself, but may be used for local development or CI. + +See the [git repository](https://github.com/kubernetes-sigs/kind) for kind for more information. + + + + + +echo "*** Removing kind ***" + +# Remove plugin related files +removepkg &name;-&version; + +rm -rf &emhttp; +rm -rf &plugin; + +echo +echo "*** Successfully removed kind ***" + + +