Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
badac1b3
Unverified
Commit
badac1b3
authored
May 11, 2019
by
Christoph Blecker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap mapfile out in update-codegen
parent
73c83a82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
update-codegen.sh
hack/update-codegen.sh
+5
-3
No files found.
hack/update-codegen.sh
View file @
badac1b3
...
@@ -62,16 +62,18 @@ GV_DIRS_CSV=$(IFS=',';echo "${GV_DIRS[*]// /,}";IFS=$)
...
@@ -62,16 +62,18 @@ GV_DIRS_CSV=$(IFS=',';echo "${GV_DIRS[*]// /,}";IFS=$)
# update- and verify- scripts.
# update- and verify- scripts.
${
clientgen
}
--output-base
"
${
KUBE_ROOT
}
/vendor"
--output-package
=
"k8s.io/client-go"
--clientset-name
=
"kubernetes"
--input-base
=
"k8s.io/kubernetes/vendor/k8s.io/api"
--input
=
"
${
GV_DIRS_CSV
}
"
--go-header-file
"
${
KUBE_ROOT
}
/hack/boilerplate/boilerplate.generatego.txt"
"
$@
"
${
clientgen
}
--output-base
"
${
KUBE_ROOT
}
/vendor"
--output-package
=
"k8s.io/client-go"
--clientset-name
=
"kubernetes"
--input-base
=
"k8s.io/kubernetes/vendor/k8s.io/api"
--input
=
"
${
GV_DIRS_CSV
}
"
--go-header-file
"
${
KUBE_ROOT
}
/hack/boilerplate/boilerplate.generatego.txt"
"
$@
"
mapfile
-t
listergen_external_apis < <
(
listergen_external_apis
=(
)
kube::util::read-array listergen_external_apis < <
(
cd
"
${
KUBE_ROOT
}
/staging/src"
cd
"
${
KUBE_ROOT
}
/staging/src"
find k8s.io/api
-name
types.go
-print0
| xargs
-0
-n1
dirname
|
sort
find k8s.io/api
-name
types.go
-print0
| xargs
-0
-n1
dirname
|
sort
)
)
listergen_external_apis_csv
=
$(
IFS
=
,
;
echo
"
${
listergen_external_apis
[*]
}
"
)
listergen_external_apis_csv
=
$(
IFS
=
,
;
echo
"
${
listergen_external_apis
[*]
}
"
)
${
listergen
}
--output-base
"
${
KUBE_ROOT
}
/vendor"
--output-package
"k8s.io/client-go/listers"
--input-dirs
"
${
listergen_external_apis_csv
}
"
--go-header-file
"
${
KUBE_ROOT
}
/hack/boilerplate/boilerplate.generatego.txt"
"
$@
"
${
listergen
}
--output-base
"
${
KUBE_ROOT
}
/vendor"
--output-package
"k8s.io/client-go/listers"
--input-dirs
"
${
listergen_external_apis_csv
}
"
--go-header-file
"
${
KUBE_ROOT
}
/hack/boilerplate/boilerplate.generatego.txt"
"
$@
"
mapfile
-t
informergen_external_apis < <
(
informergen_external_apis
=()
# because client-gen doesn't do policy/v1alpha1, we have to skip it too
kube::util::read-array informergen_external_apis < <
(
cd
"
${
KUBE_ROOT
}
/staging/src"
cd
"
${
KUBE_ROOT
}
/staging/src"
# because client-gen doesn't do policy/v1alpha1, we have to skip it too
find k8s.io/api
-name
types.go
-print0
| xargs
-0
-n1
dirname
|
sort
|
grep
-v
pkg.apis.policy.v1alpha1
find k8s.io/api
-name
types.go
-print0
| xargs
-0
-n1
dirname
|
sort
|
grep
-v
pkg.apis.policy.v1alpha1
)
)
informergen_external_apis_csv
=
$(
IFS
=
,
;
echo
"
${
informergen_external_apis
[*]
}
"
)
informergen_external_apis_csv
=
$(
IFS
=
,
;
echo
"
${
informergen_external_apis
[*]
}
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment