Custom resource definition
Co-authored-by: Mathieu Lonjaret <mathieu.lonjaret@gmail.com>
This commit is contained in:
parent
cfaf47c8a2
commit
4c060a78cc
1348 changed files with 92364 additions and 55766 deletions
23
script/boilerplate.go.tmpl
Normal file
23
script/boilerplate.go.tmpl
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016-YEAR Containous SAS
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
|
@ -30,6 +30,7 @@ find vendor -type f \( ! -iname 'licen[cs]e*' \
|
|||
-a ! -iname '*.hh' \
|
||||
-a ! -iname '*.hpp' \
|
||||
-a ! -iname '*.hxx' \
|
||||
-a ! -wholename 'vendor/k8s.io/code-generator/*' \
|
||||
-a ! -iname '*.s' \) -exec rm -f {} +
|
||||
|
||||
find . -type d \( -iname '*Godeps*' \) -exec rm -rf {} +
|
||||
|
|
|
@ -17,6 +17,7 @@ find_dirs() {
|
|||
find . -not \( \
|
||||
\( \
|
||||
-path './integration/*' \
|
||||
-o -path './old/*' \
|
||||
-o -path './vendor/*' \
|
||||
-o -path './.git/*' \
|
||||
\) \
|
||||
|
|
14
script/update-generated-crd-code.sh
Executable file
14
script/update-generated-crd-code.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
HACK_DIR=$(dirname "${BASH_SOURCE}")
|
||||
REPO_ROOT=${HACK_DIR}/..
|
||||
|
||||
${REPO_ROOT}/vendor/k8s.io/code-generator/generate-groups.sh \
|
||||
all \
|
||||
github.com/containous/traefik/provider/kubernetes/crd/generated \
|
||||
github.com/containous/traefik/provider/kubernetes/crd \
|
||||
traefik:v1alpha1 \
|
||||
--go-header-file ${HACK_DIR}/boilerplate.go.tmpl \
|
||||
$@
|
||||
|
||||
deepcopy-gen --input-dirs github.com/containous/traefik/config -O zz_generated.deepcopy --go-header-file ${HACK_DIR}/boilerplate.go.tmpl
|
Loading…
Add table
Add a link
Reference in a new issue