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
34bf1160
Unverified
Commit
34bf1160
authored
Oct 03, 2018
by
k8s-ci-robot
Committed by
GitHub
Oct 03, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #68417 from MikeSpreitzer/sample-apiserver-admission-fixes
Fixed registration of the BanFlunder admission plugin
parents
e03886c3
a5a88851
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
start.go
staging/src/k8s.io/sample-apiserver/pkg/cmd/server/start.go
+6
-3
No files found.
staging/src/k8s.io/sample-apiserver/pkg/cmd/server/start.go
View file @
34bf1160
...
...
@@ -90,13 +90,16 @@ func (o WardleServerOptions) Validate(args []string) error {
}
func
(
o
*
WardleServerOptions
)
Complete
()
error
{
// register admission plugins
banflunder
.
Register
(
o
.
RecommendedOptions
.
Admission
.
Plugins
)
// add admisison plugins to the RecommendedPluginOrder
o
.
RecommendedOptions
.
Admission
.
RecommendedPluginOrder
=
append
(
o
.
RecommendedOptions
.
Admission
.
RecommendedPluginOrder
,
"BanFlunder"
)
return
nil
}
func
(
o
*
WardleServerOptions
)
Config
()
(
*
apiserver
.
Config
,
error
)
{
// register admission plugins
banflunder
.
Register
(
o
.
RecommendedOptions
.
Admission
.
Plugins
)
// TODO have a "real" external address
if
err
:=
o
.
RecommendedOptions
.
SecureServing
.
MaybeDefaultWithSelfSignedCerts
(
"localhost"
,
nil
,
[]
net
.
IP
{
net
.
ParseIP
(
"127.0.0.1"
)});
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"error creating self-signed certificates: %v"
,
err
)
...
...
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