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
cabe69fa
Commit
cabe69fa
authored
Apr 10, 2019
by
yue9944882
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
clean up unused vars in codegen scripts
parent
a2c200a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
update-codegen.sh
hack/update-codegen.sh
+0
-11
No files found.
hack/update-codegen.sh
View file @
cabe69fa
...
@@ -40,7 +40,6 @@ informergen=$(kube::util::find-binary "informer-gen")
...
@@ -40,7 +40,6 @@ informergen=$(kube::util::find-binary "informer-gen")
GROUP_VERSIONS
=(
${
KUBE_AVAILABLE_GROUP_VERSIONS
}
)
GROUP_VERSIONS
=(
${
KUBE_AVAILABLE_GROUP_VERSIONS
}
)
GV_DIRS
=()
GV_DIRS
=()
INTERNAL_DIRS
=()
for
gv
in
"
${
GROUP_VERSIONS
[@]
}
"
;
do
for
gv
in
"
${
GROUP_VERSIONS
[@]
}
"
;
do
# add items, but strip off any leading apis/ you find to match command expectations
# add items, but strip off any leading apis/ you find to match command expectations
api_dir
=
$(
kube::util::group-version-to-pkg-path
"
${
gv
}
"
)
api_dir
=
$(
kube::util::group-version-to-pkg-path
"
${
gv
}
"
)
...
@@ -55,19 +54,9 @@ for gv in "${GROUP_VERSIONS[@]}"; do
...
@@ -55,19 +54,9 @@ for gv in "${GROUP_VERSIONS[@]}"; do
fi
fi
GV_DIRS+
=(
"
${
pkg_dir
}
"
)
GV_DIRS+
=(
"
${
pkg_dir
}
"
)
# collect internal groups
int_group
=
"
${
pkg_dir
%/*
}
/"
if
[[
"
${
pkg_dir
}
"
=
core/
*
]]
;
then
int_group
=
"api/"
fi
if
!
[[
"
${
INTERNAL_DIRS
[@]
:-}
"
=
~
"
${
int_group
}
"
]]
;
then
INTERNAL_DIRS+
=(
"
${
int_group
}
"
)
fi
done
done
# delimit by commas for the command
# delimit by commas for the command
GV_DIRS_CSV
=
$(
IFS
=
','
;
echo
"
${
GV_DIRS
[*]// /,
}
"
;
IFS
=
$)
GV_DIRS_CSV
=
$(
IFS
=
','
;
echo
"
${
GV_DIRS
[*]// /,
}
"
;
IFS
=
$)
INTERNAL_DIRS_CSV
=
$(
IFS
=
','
;
echo
"
${
INTERNAL_DIRS
[*]// /,
}
"
;
IFS
=
$)
# This can be called with one flag, --verify-only, so it works for both the
# This can be called with one flag, --verify-only, so it works for both the
# update- and verify- scripts.
# update- and verify- scripts.
...
...
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