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
e57ef432
Commit
e57ef432
authored
Dec 13, 2016
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document broken behaviour with KUBE_API_VERSIONS
parent
543417db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
server.go
cmd/kube-apiserver/app/server.go
+10
-1
No files found.
cmd/kube-apiserver/app/server.go
View file @
e57ef432
...
...
@@ -25,6 +25,7 @@ import (
"net"
"net/http"
"net/url"
"os"
"strconv"
"strings"
"time"
...
...
@@ -246,7 +247,15 @@ func Run(s *options.ServerRunOptions) error {
}
client
,
err
:=
internalclientset
.
NewForConfig
(
selfClientConfig
)
if
err
!=
nil
{
return
fmt
.
Errorf
(
"failed to create clientset: %v"
,
err
)
kubeAPIVersions
:=
os
.
Getenv
(
"KUBE_API_VERSIONS"
)
if
len
(
kubeAPIVersions
)
==
0
{
return
fmt
.
Errorf
(
"failed to create clientset: %v"
,
err
)
}
// KUBE_API_VERSIONS is used in test-update-storage-objects.sh, disabling a number of API
// groups. This leads to a nil client above and undefined behaviour further down.
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
glog
.
Errorf
(
"Failed to create clientset with KUBE_API_VERSIONS=%q. KUBE_API_VERSIONS is only for testing. Things will break."
,
kubeAPIVersions
)
}
sharedInformers
:=
informers
.
NewSharedInformerFactory
(
nil
,
client
,
10
*
time
.
Minute
)
...
...
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