diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6dd29b7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bin/ \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..8645fc5 --- /dev/null +++ b/build.sh @@ -0,0 +1,14 @@ +#!/bin/sh + +BINVERSION="0.1.0" +archs=( "linux.amd64" "linux.386" "darwin.amd64" "darwin.386" ) + +rm -rf bin +mkdir bin +for i in "${archs[@]}" +do +rm helmez/helmez-bin +binurl="https://github.com/ysaakpr/helmez-bin/releases/download/${BINVERSION}/helmez-bin.${i}" +curl -o helmez/helmez-bin ${binurl} +tar -zcvf bin/helmez-${i}.tar.gz helmez/ +done \ No newline at end of file diff --git a/helmez/plugin.yaml b/helmez/plugin.yaml new file mode 100644 index 0000000..904dd9c --- /dev/null +++ b/helmez/plugin.yaml @@ -0,0 +1,8 @@ +name: "helmez" +version: "0.1.0" +usage: "Integrate helmez tools with Helm" +description: |- + This plugin provides helmez services to Helm. +ignoreFlags: false +useTunnel: false +command: "$HELM_PLUGIN_DIR/run.sh" \ No newline at end of file diff --git a/helmez/run.sh b/helmez/run.sh new file mode 100644 index 0000000..54902be --- /dev/null +++ b/helmez/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +$HELM_PLUGIN_DIR/helmez-bin \ No newline at end of file