2019-03-14 14:56:06 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2019-05-06 07:40:04 +00:00
|
|
|
HACK_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export HACK_DIR
|
2019-03-14 14:56:06 +00:00
|
|
|
REPO_ROOT=${HACK_DIR}/..
|
|
|
|
|
2019-05-10 15:24:06 +00:00
|
|
|
"${REPO_ROOT}"/vendor/k8s.io/code-generator/generate-groups.sh \
|
2019-03-14 14:56:06 +00:00
|
|
|
all \
|
2019-03-15 08:42:03 +00:00
|
|
|
github.com/containous/traefik/pkg/provider/kubernetes/crd/generated \
|
|
|
|
github.com/containous/traefik/pkg/provider/kubernetes/crd \
|
2019-03-14 14:56:06 +00:00
|
|
|
traefik:v1alpha1 \
|
2019-05-10 15:24:06 +00:00
|
|
|
--go-header-file "${HACK_DIR}"/boilerplate.go.tmpl \
|
|
|
|
"$@"
|
2019-03-14 14:56:06 +00:00
|
|
|
|
2019-05-10 15:24:06 +00:00
|
|
|
deepcopy-gen --input-dirs github.com/containous/traefik/pkg/config -O zz_generated.deepcopy --go-header-file "${HACK_DIR}"/boilerplate.go.tmpl
|