Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Yaroslav Borbat <[email protected]>
  • Loading branch information
yaroslavborbat committed Mar 14, 2024
1 parent 8ae5809 commit b1f2289
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c Config) Validate() error {
return err
}

func (c Config) Complete() (*server, error) {
func (c Config) Complete() (*Server, error) {
proxyCertManager := filesystem.NewFileCertificateManager(c.ProxyClientCertFile, c.ProxyClientKeyFile)
informer, err := virtualizationInformerFactory(c.Rest)
if err != nil {
Expand Down
8 changes: 4 additions & 4 deletions images/virtualization-artifact/pkg/apiserver/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ func NewServer(
virtualMachines cache.Controller,
apiserver *genericapiserver.GenericAPIServer,
proxyCertManager certmanager.CertificateManager,
) *server {
return &server{
) *Server {
return &Server{
virtualMachines: virtualMachines,
GenericAPIServer: apiserver,
proxyCertManager: proxyCertManager,
}
}

type server struct {
type Server struct {
*genericapiserver.GenericAPIServer
proxyCertManager certmanager.CertificateManager
virtualMachines cache.Controller
}

func (s *server) RunUntil(stopCh <-chan struct{}) error {
func (s *Server) RunUntil(stopCh <-chan struct{}) error {
go s.proxyCertManager.Start()
// Start informers
go s.virtualMachines.Run(stopCh)
Expand Down

0 comments on commit b1f2289

Please sign in to comment.