chore: go module

This commit is contained in:
Fernandez Ludovic 2019-08-03 03:58:23 +02:00 committed by Traefiker Bot
parent f327b7b499
commit 4c5e7a238d
276 changed files with 1555 additions and 738 deletions

View file

@ -3,6 +3,10 @@
HACK_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export HACK_DIR
REPO_ROOT=${HACK_DIR}/..
rm -rf "${REPO_ROOT}"/vendor
go mod vendor
chmod +x "${REPO_ROOT}"/vendor/k8s.io/code-generator/*.sh
"${REPO_ROOT}"/vendor/k8s.io/code-generator/generate-groups.sh \
all \
github.com/containous/traefik/pkg/provider/kubernetes/crd/generated \
@ -16,3 +20,5 @@ deepcopy-gen \
--input-dirs github.com/containous/traefik/pkg/tls \
--input-dirs github.com/containous/traefik/pkg/types \
-O zz_generated.deepcopy --go-header-file "${HACK_DIR}"/boilerplate.go.tmpl
rm -rf "${REPO_ROOT}"/vendor