Skip to content

Commit

Permalink
reset admission plugins for the openshift APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Jun 9, 2017
1 parent f6c0700 commit 04d7fb0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/server/origin/master.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,14 @@ func (c *MasterConfig) Run(kubeAPIServerConfig *kubeapiserver.Config, assetConfi
}
// TODO this goes away in 3.7 after we commit to the aggregator always being on (even if its just in local mode).
// this is installing the openshift APIs into the kubeapiserver
// ok, this is a big side-effect. Openshift APIs run a different admission chain (always have), but since
// we're going through a "normal" API installation in the wrong server, we need to switch the admission chain
// *only while we're installing these APIs*. There are tests that make sure this works and doesn't drop
// plugins and we'll remove it once we're aggregating
kubeAPIServer.GenericAPIServer.SetAdmission(openshiftAPIServerConfig.GenericConfig.AdmissionControl)
installAPIs(openshiftAPIServerConfig, kubeAPIServer.GenericAPIServer)
kubeAPIServer.GenericAPIServer.SetAdmission(kubeAPIServerConfig.GenericConfig.AdmissionControl)

// this sets up the openapi endpoints
preparedKubeAPIServer := kubeAPIServer.GenericAPIServer.PrepareRun()

Expand Down

0 comments on commit 04d7fb0

Please sign in to comment.