github.com/verrazzano/verrazzano@v1.7.0/platform-operator/controllers/module/component-handler/factory/factory.go (about)

     1  // Copyright (c) 2023, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package factory
     5  
     6  import (
     7  	"github.com/verrazzano/verrazzano-modules/pkg/controller/spi/handlerspi"
     8  	delete2 "github.com/verrazzano/verrazzano/platform-operator/controllers/module/component-handler/delete"
     9  	"github.com/verrazzano/verrazzano/platform-operator/controllers/module/component-handler/installupdate"
    10  	"github.com/verrazzano/verrazzano/platform-operator/controllers/module/component-handler/migration"
    11  	"github.com/verrazzano/verrazzano/platform-operator/controllers/module/component-handler/upgrade"
    12  )
    13  
    14  // NewModuleHandlerInfo creates a new ModuleHandlerInfo
    15  func NewModuleHandlerInfo() handlerspi.ModuleHandlerInfo {
    16  	return handlerspi.ModuleHandlerInfo{
    17  		DeleteActionHandler:  delete2.NewHandler(),
    18  		InstallActionHandler: installupdate.NewHandler(installupdate.InstallAction),
    19  		UpdateActionHandler:  installupdate.NewHandler(installupdate.UpdateAction),
    20  		UpgradeActionHandler: upgrade.NewHandler(),
    21  		MigrationHandler:     migration.NewHandler(),
    22  	}
    23  }