Documentation ¶
Index ¶
- func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
- type Reconciler
- type ServiceManager
- func (s *ServiceManager) Apply() error
- func (s *ServiceManager) For(harborCtrl *harbor.Controller) *ServiceManager
- func (s *ServiceManager) From(cluster *goharborv1.HarborCluster) *ServiceManager
- func (s *ServiceManager) TrackedBy(st *status) *ServiceManager
- func (s *ServiceManager) Use(ctrl lcm.Controller) *ServiceManager
- func (s *ServiceManager) WithContext(ctx context.Context) *ServiceManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
New HarborCluster reconciler.
Types ¶
type Reconciler ¶
type Reconciler struct { Scheme *runtime.Scheme // In case Name string CacheCtrl lcm.Controller DatabaseCtrl lcm.Controller StorageCtrl lcm.Controller HarborCtrl *harbor.Controller *commonCtrl.Controller // TODO: move the Reconcile to pkg/controller.Controller }
TODO: Refactor to inherit the common reconciler in future Reconciler reconciles a HarborCluster object.
func (*Reconciler) NormalizeName ¶
func (*Reconciler) SetupWithManager ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
ServiceManager is designed to maintain the dependent services of the cluster.
func NewServiceManager ¶
func NewServiceManager(component goharborv1.Component) *ServiceManager
NewServiceManager constructs a new service manager for the specified component.
func (*ServiceManager) For ¶
func (s *ServiceManager) For(harborCtrl *harbor.Controller) *ServiceManager
For the harbor.
func (*ServiceManager) From ¶
func (s *ServiceManager) From(cluster *goharborv1.HarborCluster) *ServiceManager
From which spec.
func (*ServiceManager) TrackedBy ¶
func (s *ServiceManager) TrackedBy(st *status) *ServiceManager
TrackedBy by which status object.
func (*ServiceManager) Use ¶
func (s *ServiceManager) Use(ctrl lcm.Controller) *ServiceManager
Use which ctrl.
func (*ServiceManager) WithContext ¶
func (s *ServiceManager) WithContext(ctx context.Context) *ServiceManager
WithContext bind a context.
Click to show internal directories.
Click to hide internal directories.