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
f25f5a2c
Commit
f25f5a2c
authored
Nov 10, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17053 from zhengguoyong/rename_validGroupVersions
Auto commit by PR queue bot
parents
447fe209
973400a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
registered.go
pkg/api/registered/registered.go
+3
-4
No files found.
pkg/api/registered/registered.go
View file @
f25f5a2c
...
@@ -30,8 +30,7 @@ import (
...
@@ -30,8 +30,7 @@ import (
var
RegisteredVersions
[]
string
var
RegisteredVersions
[]
string
func
init
()
{
func
init
()
{
// TODO: caesarxuchao: rename this variable to validGroupVersions
validGroupVersions
:=
map
[
string
]
bool
{
validAPIVersions
:=
map
[
string
]
bool
{
"v1"
:
true
,
"v1"
:
true
,
"extensions/v1beta1"
:
true
,
"extensions/v1beta1"
:
true
,
"componentconfig/v1alpha1"
:
true
,
"componentconfig/v1alpha1"
:
true
,
...
@@ -49,11 +48,11 @@ func init() {
...
@@ -49,11 +48,11 @@ func init() {
versions
:=
strings
.
Split
(
supportedVersions
,
","
)
versions
:=
strings
.
Split
(
supportedVersions
,
","
)
for
_
,
version
:=
range
versions
{
for
_
,
version
:=
range
versions
{
// Verify that the version is valid.
// Verify that the version is valid.
valid
,
ok
:=
valid
API
Versions
[
version
]
valid
,
ok
:=
valid
Group
Versions
[
version
]
if
!
ok
||
!
valid
{
if
!
ok
||
!
valid
{
// Not a valid API version.
// Not a valid API version.
glog
.
Fatalf
(
"invalid api version: %s in KUBE_API_VERSIONS: %s. List of valid API versions: %v"
,
glog
.
Fatalf
(
"invalid api version: %s in KUBE_API_VERSIONS: %s. List of valid API versions: %v"
,
version
,
os
.
Getenv
(
"KUBE_API_VERSIONS"
),
valid
API
Versions
)
version
,
os
.
Getenv
(
"KUBE_API_VERSIONS"
),
valid
Group
Versions
)
}
}
RegisteredVersions
=
append
(
RegisteredVersions
,
version
)
RegisteredVersions
=
append
(
RegisteredVersions
,
version
)
}
}
...
...
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