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
0e37530b
Commit
0e37530b
authored
Sep 07, 2016
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add logging for enabled/disabled API groups
parent
5185f4c6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
master.go
pkg/master/master.go
+3
-0
No files found.
pkg/master/master.go
View file @
0e37530b
...
@@ -297,13 +297,16 @@ func (m *Master) InstallAPIs(c *Config) {
...
@@ -297,13 +297,16 @@ func (m *Master) InstallAPIs(c *Config) {
// TODO find a better way to configure priority of groups
// TODO find a better way to configure priority of groups
for
_
,
group
:=
range
sets
.
StringKeySet
(
c
.
RESTStorageProviders
)
.
List
()
{
for
_
,
group
:=
range
sets
.
StringKeySet
(
c
.
RESTStorageProviders
)
.
List
()
{
if
!
c
.
APIResourceConfigSource
.
AnyResourcesForGroupEnabled
(
group
)
{
if
!
c
.
APIResourceConfigSource
.
AnyResourcesForGroupEnabled
(
group
)
{
glog
.
V
(
1
)
.
Infof
(
"Skipping disabled API group %q."
,
group
)
continue
continue
}
}
restStorageBuilder
:=
c
.
RESTStorageProviders
[
group
]
restStorageBuilder
:=
c
.
RESTStorageProviders
[
group
]
apiGroupInfo
,
enabled
:=
restStorageBuilder
.
NewRESTStorage
(
c
.
APIResourceConfigSource
,
restOptionsGetter
)
apiGroupInfo
,
enabled
:=
restStorageBuilder
.
NewRESTStorage
(
c
.
APIResourceConfigSource
,
restOptionsGetter
)
if
!
enabled
{
if
!
enabled
{
glog
.
Warningf
(
"Problem initializing API group %q, skipping."
,
group
)
continue
continue
}
}
glog
.
V
(
1
)
.
Infof
(
"Enabling API group %q."
,
group
)
// This is here so that, if the policy group is present, the eviction
// This is here so that, if the policy group is present, the eviction
// subresource handler wil be able to find poddisruptionbudgets
// subresource handler wil be able to find poddisruptionbudgets
...
...
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