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
ee5bc39c
Commit
ee5bc39c
authored
Apr 02, 2018
by
David Eads
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove kube-apiserver option that is always force to true
parent
1102fd0d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
16 deletions
+6
-16
server.go
cmd/kube-apiserver/app/server.go
+0
-1
master.go
pkg/master/master.go
+5
-8
master_test.go
pkg/master/master_test.go
+0
-1
apiserver_test.go
test/integration/apiserver/apiserver_test.go
+0
-1
master_utils.go
test/integration/framework/master_utils.go
+0
-2
openshift_test.go
test/integration/openshift/openshift_test.go
+1
-2
ciphers_test.go
test/integration/tls/ciphers_test.go
+0
-1
No files found.
cmd/kube-apiserver/app/server.go
View file @
ee5bc39c
...
@@ -357,7 +357,6 @@ func CreateKubeAPIServerConfig(s *options.ServerRunOptions, nodeTunneler tunnele
...
@@ -357,7 +357,6 @@ func CreateKubeAPIServerConfig(s *options.ServerRunOptions, nodeTunneler tunnele
APIResourceConfigSource
:
storageFactory
.
APIResourceConfigSource
,
APIResourceConfigSource
:
storageFactory
.
APIResourceConfigSource
,
StorageFactory
:
storageFactory
,
StorageFactory
:
storageFactory
,
EnableCoreControllers
:
true
,
EventTTL
:
s
.
EventTTL
,
EventTTL
:
s
.
EventTTL
,
KubeletClientConfig
:
s
.
KubeletConfig
,
KubeletClientConfig
:
s
.
KubeletConfig
,
EnableLogsSupport
:
s
.
EnableLogsHandler
,
EnableLogsSupport
:
s
.
EnableLogsHandler
,
...
...
pkg/master/master.go
View file @
ee5bc39c
...
@@ -103,7 +103,6 @@ type ExtraConfig struct {
...
@@ -103,7 +103,6 @@ type ExtraConfig struct {
APIResourceConfigSource
serverstorage
.
APIResourceConfigSource
APIResourceConfigSource
serverstorage
.
APIResourceConfigSource
StorageFactory
serverstorage
.
StorageFactory
StorageFactory
serverstorage
.
StorageFactory
EnableCoreControllers
bool
EndpointReconcilerConfig
EndpointReconcilerConfig
EndpointReconcilerConfig
EndpointReconcilerConfig
EventTTL
time
.
Duration
EventTTL
time
.
Duration
KubeletClientConfig
kubeletclient
.
KubeletClientConfig
KubeletClientConfig
kubeletclient
.
KubeletClientConfig
...
@@ -368,13 +367,11 @@ func (m *Master) InstallLegacyAPI(c *completedConfig, restOptionsGetter generic.
...
@@ -368,13 +367,11 @@ func (m *Master) InstallLegacyAPI(c *completedConfig, restOptionsGetter generic.
glog
.
Fatalf
(
"Error building core storage: %v"
,
err
)
glog
.
Fatalf
(
"Error building core storage: %v"
,
err
)
}
}
if
c
.
ExtraConfig
.
EnableCoreControllers
{
controllerName
:=
"bootstrap-controller"
controllerName
:=
"bootstrap-controller"
coreClient
:=
coreclient
.
NewForConfigOrDie
(
c
.
GenericConfig
.
LoopbackClientConfig
)
coreClient
:=
coreclient
.
NewForConfigOrDie
(
c
.
GenericConfig
.
LoopbackClientConfig
)
bootstrapController
:=
c
.
NewBootstrapController
(
legacyRESTStorage
,
coreClient
,
coreClient
,
coreClient
)
bootstrapController
:=
c
.
NewBootstrapController
(
legacyRESTStorage
,
coreClient
,
coreClient
,
coreClient
)
m
.
GenericAPIServer
.
AddPostStartHookOrDie
(
controllerName
,
bootstrapController
.
PostStartHook
)
m
.
GenericAPIServer
.
AddPostStartHookOrDie
(
controllerName
,
bootstrapController
.
PostStartHook
)
m
.
GenericAPIServer
.
AddPreShutdownHookOrDie
(
controllerName
,
bootstrapController
.
PreShutdownHook
)
m
.
GenericAPIServer
.
AddPreShutdownHookOrDie
(
controllerName
,
bootstrapController
.
PreShutdownHook
)
}
if
err
:=
m
.
GenericAPIServer
.
InstallLegacyAPIGroup
(
genericapiserver
.
DefaultLegacyAPIPrefix
,
&
apiGroupInfo
);
err
!=
nil
{
if
err
:=
m
.
GenericAPIServer
.
InstallLegacyAPIGroup
(
genericapiserver
.
DefaultLegacyAPIPrefix
,
&
apiGroupInfo
);
err
!=
nil
{
glog
.
Fatalf
(
"Error in registering group versions: %v"
,
err
)
glog
.
Fatalf
(
"Error in registering group versions: %v"
,
err
)
...
...
pkg/master/master_test.go
View file @
ee5bc39c
...
@@ -108,7 +108,6 @@ func setUp(t *testing.T) (*etcdtesting.EtcdTestServer, Config, informers.SharedI
...
@@ -108,7 +108,6 @@ func setUp(t *testing.T) (*etcdtesting.EtcdTestServer, Config, informers.SharedI
config
.
GenericConfig
.
LegacyAPIGroupPrefixes
=
sets
.
NewString
(
"/api"
)
config
.
GenericConfig
.
LegacyAPIGroupPrefixes
=
sets
.
NewString
(
"/api"
)
config
.
GenericConfig
.
RequestContextMapper
=
genericapirequest
.
NewRequestContextMapper
()
config
.
GenericConfig
.
RequestContextMapper
=
genericapirequest
.
NewRequestContextMapper
()
config
.
GenericConfig
.
LoopbackClientConfig
=
&
restclient
.
Config
{
APIPath
:
"/api"
,
ContentConfig
:
restclient
.
ContentConfig
{
NegotiatedSerializer
:
legacyscheme
.
Codecs
}}
config
.
GenericConfig
.
LoopbackClientConfig
=
&
restclient
.
Config
{
APIPath
:
"/api"
,
ContentConfig
:
restclient
.
ContentConfig
{
NegotiatedSerializer
:
legacyscheme
.
Codecs
}}
config
.
ExtraConfig
.
EnableCoreControllers
=
false
config
.
ExtraConfig
.
KubeletClientConfig
=
kubeletclient
.
KubeletClientConfig
{
Port
:
10250
}
config
.
ExtraConfig
.
KubeletClientConfig
=
kubeletclient
.
KubeletClientConfig
{
Port
:
10250
}
config
.
ExtraConfig
.
ProxyTransport
=
utilnet
.
SetTransportDefaults
(
&
http
.
Transport
{
config
.
ExtraConfig
.
ProxyTransport
=
utilnet
.
SetTransportDefaults
(
&
http
.
Transport
{
Dial
:
func
(
network
,
addr
string
)
(
net
.
Conn
,
error
)
{
return
nil
,
nil
},
Dial
:
func
(
network
,
addr
string
)
(
net
.
Conn
,
error
)
{
return
nil
,
nil
},
...
...
test/integration/apiserver/apiserver_test.go
View file @
ee5bc39c
...
@@ -46,7 +46,6 @@ import (
...
@@ -46,7 +46,6 @@ import (
func
setup
(
t
*
testing
.
T
,
groupVersions
...
schema
.
GroupVersion
)
(
*
httptest
.
Server
,
clientset
.
Interface
,
framework
.
CloseFunc
)
{
func
setup
(
t
*
testing
.
T
,
groupVersions
...
schema
.
GroupVersion
)
(
*
httptest
.
Server
,
clientset
.
Interface
,
framework
.
CloseFunc
)
{
masterConfig
:=
framework
.
NewIntegrationTestMasterConfig
()
masterConfig
:=
framework
.
NewIntegrationTestMasterConfig
()
masterConfig
.
ExtraConfig
.
EnableCoreControllers
=
false
if
len
(
groupVersions
)
>
0
{
if
len
(
groupVersions
)
>
0
{
resourceConfig
:=
master
.
DefaultAPIResourceConfigSource
()
resourceConfig
:=
master
.
DefaultAPIResourceConfigSource
()
resourceConfig
.
EnableVersions
(
groupVersions
...
)
resourceConfig
.
EnableVersions
(
groupVersions
...
)
...
...
test/integration/framework/master_utils.go
View file @
ee5bc39c
...
@@ -219,7 +219,6 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv
...
@@ -219,7 +219,6 @@ func startMasterOrDie(masterConfig *master.Config, incomingServer *httptest.Serv
// Returns the master config appropriate for most integration tests.
// Returns the master config appropriate for most integration tests.
func
NewIntegrationTestMasterConfig
()
*
master
.
Config
{
func
NewIntegrationTestMasterConfig
()
*
master
.
Config
{
masterConfig
:=
NewMasterConfig
()
masterConfig
:=
NewMasterConfig
()
masterConfig
.
ExtraConfig
.
EnableCoreControllers
=
true
masterConfig
.
GenericConfig
.
PublicAddress
=
net
.
ParseIP
(
"192.168.10.4"
)
masterConfig
.
GenericConfig
.
PublicAddress
=
net
.
ParseIP
(
"192.168.10.4"
)
masterConfig
.
ExtraConfig
.
APIResourceConfigSource
=
master
.
DefaultAPIResourceConfigSource
()
masterConfig
.
ExtraConfig
.
APIResourceConfigSource
=
master
.
DefaultAPIResourceConfigSource
()
return
masterConfig
return
masterConfig
...
@@ -298,7 +297,6 @@ func NewMasterConfig() *master.Config {
...
@@ -298,7 +297,6 @@ func NewMasterConfig() *master.Config {
ExtraConfig
:
master
.
ExtraConfig
{
ExtraConfig
:
master
.
ExtraConfig
{
APIResourceConfigSource
:
master
.
DefaultAPIResourceConfigSource
(),
APIResourceConfigSource
:
master
.
DefaultAPIResourceConfigSource
(),
StorageFactory
:
storageFactory
,
StorageFactory
:
storageFactory
,
EnableCoreControllers
:
true
,
KubeletClientConfig
:
kubeletclient
.
KubeletClientConfig
{
Port
:
10250
},
KubeletClientConfig
:
kubeletclient
.
KubeletClientConfig
{
Port
:
10250
},
APIServerServicePort
:
443
,
APIServerServicePort
:
443
,
MasterCount
:
1
,
MasterCount
:
1
,
...
...
test/integration/openshift/openshift_test.go
View file @
ee5bc39c
...
@@ -31,8 +31,7 @@ func TestMasterExportsSymbols(t *testing.T) {
...
@@ -31,8 +31,7 @@ func TestMasterExportsSymbols(t *testing.T) {
EnableMetrics
:
true
,
EnableMetrics
:
true
,
},
},
ExtraConfig
:
master
.
ExtraConfig
{
ExtraConfig
:
master
.
ExtraConfig
{
EnableCoreControllers
:
false
,
EnableLogsSupport
:
false
,
EnableLogsSupport
:
false
,
},
},
}
}
_
=
&
master
.
Master
{
_
=
&
master
.
Master
{
...
...
test/integration/tls/ciphers_test.go
View file @
ee5bc39c
...
@@ -70,7 +70,6 @@ func runBasicSecureAPIServer(t *testing.T, ciphers []string) (uint32, error) {
...
@@ -70,7 +70,6 @@ func runBasicSecureAPIServer(t *testing.T, ciphers []string) (uint32, error) {
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatal
(
err
)
t
.
Fatal
(
err
)
}
}
kubeAPIServerConfig
.
ExtraConfig
.
EnableCoreControllers
=
false
kubeClientConfigValue
.
Store
(
kubeAPIServerConfig
.
GenericConfig
.
LoopbackClientConfig
)
kubeClientConfigValue
.
Store
(
kubeAPIServerConfig
.
GenericConfig
.
LoopbackClientConfig
)
kubeAPIServer
,
err
:=
app
.
CreateKubeAPIServer
(
kubeAPIServerConfig
,
genericapiserver
.
EmptyDelegate
,
sharedInformers
,
versionedInformers
)
kubeAPIServer
,
err
:=
app
.
CreateKubeAPIServer
(
kubeAPIServerConfig
,
genericapiserver
.
EmptyDelegate
,
sharedInformers
,
versionedInformers
)
...
...
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