traefik/script/update-generated-crd-code.sh

15 lines
507 B
Bash
Raw Normal View History

#!/bin/bash -e
HACK_DIR=$(dirname "${BASH_SOURCE}")
REPO_ROOT=${HACK_DIR}/..
${REPO_ROOT}/vendor/k8s.io/code-generator/generate-groups.sh \
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 \
traefik:v1alpha1 \
--go-header-file ${HACK_DIR}/boilerplate.go.tmpl \
$@
2019-03-15 08:42:03 +00:00
deepcopy-gen --input-dirs github.com/containous/traefik/pkg/config -O zz_generated.deepcopy --go-header-file ${HACK_DIR}/boilerplate.go.tmpl