Update Weave Net
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adrien Reslinger 2020-06-10 22:09:51 +02:00
parent ee5fe96bb2
commit 9d35d4b4a7
14 changed files with 17 additions and 16 deletions

View file

@ -10,7 +10,8 @@ rm -fr generated{,.log} scope.yaml
# https://github.com/weaveworks/weave/releases/download/latest_release/weave-daemonset-k8s-1.11.yaml
curl -LO https://cloud.weave.works/k8s/2.6.4/net.yaml -o net.yaml
WEAVE_NET_VERSION="$(curl --silent "https://api.github.com/repos/weaveworks/weave/releases/latest" | jq {"body"} | sed -e '/^{/d' -e '/^}/d' -e 's|.*/releases/v\([0-9\.]*\).*|\1|')"
curl -LO https://cloud.weave.works/k8s/"${WEAVE_NET_VERSION}"/net.yaml -o net.yaml
sed -e /^apiVersion/d -e /^kind/d -e /^items/d -e "s/^ //" -e '/^- / i---' -e 's/^[ -] //' -i net.yaml
kubernetes-split-yaml net.yaml > generated.log
mv generated/*.yaml files/net/