scripts: makefile, dockerfile, travis, ...
This commit is contained in:
parent
4c5e7a238d
commit
51b0508512
12 changed files with 71 additions and 133 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
HACK_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export HACK_DIR
|
||||
REPO_ROOT=${HACK_DIR}/..
|
||||
TRAEFIK_MODULE_VERSION=v2
|
||||
|
||||
rm -rf "${REPO_ROOT}"/vendor
|
||||
go mod vendor
|
||||
|
@ -9,16 +10,19 @@ 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 \
|
||||
github.com/containous/traefik/pkg/provider/kubernetes/crd \
|
||||
github.com/containous/traefik/${TRAEFIK_MODULE_VERSION}/pkg/provider/kubernetes/crd/generated \
|
||||
github.com/containous/traefik/${TRAEFIK_MODULE_VERSION}/pkg/provider/kubernetes/crd \
|
||||
traefik:v1alpha1 \
|
||||
--go-header-file "${HACK_DIR}"/boilerplate.go.tmpl \
|
||||
"$@"
|
||||
|
||||
deepcopy-gen \
|
||||
--input-dirs github.com/containous/traefik/pkg/config/dynamic \
|
||||
--input-dirs github.com/containous/traefik/pkg/tls \
|
||||
--input-dirs github.com/containous/traefik/pkg/types \
|
||||
--input-dirs github.com/containous/traefik/${TRAEFIK_MODULE_VERSION}/pkg/config/dynamic \
|
||||
--input-dirs github.com/containous/traefik/${TRAEFIK_MODULE_VERSION}/pkg/tls \
|
||||
--input-dirs github.com/containous/traefik/${TRAEFIK_MODULE_VERSION}/pkg/types \
|
||||
--output-package github.com/containous/traefik \
|
||||
-O zz_generated.deepcopy --go-header-file "${HACK_DIR}"/boilerplate.go.tmpl
|
||||
|
||||
cp -r "${REPO_ROOT}"/"${TRAEFIK_MODULE_VERSION:?}"/* "${REPO_ROOT}"; rm -rf "${REPO_ROOT}"/"${TRAEFIK_MODULE_VERSION:?}"
|
||||
|
||||
rm -rf "${REPO_ROOT}"/vendor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue