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
8f9cddda
Commit
8f9cddda
authored
Jan 10, 2018
by
Slava Semushin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/kube-apiserver/app/aggregator.go: add comments for explaining the group/version fields.
parent
08c127d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
aggregator.go
cmd/kube-apiserver/app/aggregator.go
+8
-1
No files found.
cmd/kube-apiserver/app/aggregator.go
View file @
8f9cddda
...
...
@@ -187,8 +187,12 @@ func makeAPIServiceAvailableHealthzCheck(name string, apiServices []*apiregistra
})
}
// priority defines group priority that is used in discovery. This controls
// group position in the kubectl output.
type
priority
struct
{
group
int32
// group indicates the order of the group relative to other groups.
group
int32
// version indicates the relative order of the version inside of its group.
version
int32
}
...
...
@@ -229,6 +233,9 @@ var apiVersionPriorities = map[schema.GroupVersion]priority{
{
Group
:
"admissionregistration.k8s.io"
,
Version
:
"v1beta1"
}
:
{
group
:
16700
,
version
:
12
},
{
Group
:
"admissionregistration.k8s.io"
,
Version
:
"v1alpha1"
}
:
{
group
:
16700
,
version
:
9
},
{
Group
:
"scheduling.k8s.io"
,
Version
:
"v1alpha1"
}
:
{
group
:
16600
,
version
:
9
},
// Append a new group to the end of the list if unsure.
// You can use min(existing group)-100 as the initial value for a group.
// Version can be set to 9 (to have space around) for a new group.
}
func
apiServicesToRegister
(
delegateAPIServer
genericapiserver
.
DelegationTarget
,
registration
autoregister
.
AutoAPIServiceRegistration
)
[]
*
apiregistration
.
APIService
{
...
...
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