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
1350cc8b
Commit
1350cc8b
authored
Jul 09, 2015
by
nikhiljindal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set KUBE_API_VERSIONS appropriately
parent
d864d271
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
10 deletions
+22
-10
update-generated-conversions.sh
hack/update-generated-conversions.sh
+4
-2
update-generated-deep-copies.sh
hack/update-generated-deep-copies.sh
+18
-8
No files found.
hack/update-generated-conversions.sh
View file @
1350cc8b
...
@@ -49,6 +49,8 @@ EOF
...
@@ -49,6 +49,8 @@ EOF
}
}
VERSIONS
=
"v1beta3 v1"
VERSIONS
=
"v1beta3 v1"
for
ver
in
$VERSIONS
;
do
for
ver
in
$VERSIONS
;
do
generate_version
"
${
ver
}
"
# Ensure that the version being processed is registered by setting
# KUBE_API_VERSIONS.
KUBE_API_VERSIONS
=
"
${
ver
}
"
generate_version
"
${
ver
}
"
done
done
hack/update-generated-deep-copies.sh
View file @
1350cc8b
...
@@ -50,11 +50,21 @@ EOF
...
@@ -50,11 +50,21 @@ EOF
mv
$TMPFILE
`
result_file_name
${
version
}
`
mv
$TMPFILE
`
result_file_name
${
version
}
`
}
}
VERSIONS
=
"api v1beta3 v1"
function
generate_deep_copies
()
{
# To avoid compile errors, remove the currently existing files.
local
versions
=
"api v1beta3 v1"
for
ver
in
$VERSIONS
;
do
# To avoid compile errors, remove the currently existing files.
rm
-f
`
result_file_name
${
ver
}
`
for
ver
in
${
versions
}
;
do
done
rm
-f
`
result_file_name
${
ver
}
`
for
ver
in
$VERSIONS
;
do
done
generate_version
"
${
ver
}
"
apiVersions
=
""
done
for
ver
in
${
versions
}
;
do
# Ensure that the version being processed is registered by setting
# KUBE_API_VERSIONS.
if
[
"
${
ver
}
"
!=
"api"
]
;
then
apiVersions
=
"
${
ver
}
"
fi
KUBE_API_VERSIONS
=
"
${
apiVersions
}
"
generate_version
"
${
ver
}
"
done
}
generate_deep_copies
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