harborcluster

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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 (r *Reconciler) NormalizeName(ctx context.Context, name string, suffixes ...string) string

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (res ctrl.Result, err error)

Reconcile logic of the HarborCluster.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

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) Apply

func (s *ServiceManager) Apply() error

Apply changes.

func (*ServiceManager) For

func (s *ServiceManager) For(harborCtrl *harbor.Controller) *ServiceManager

For the harbor.

func (*ServiceManager) From

From which spec.

func (*ServiceManager) TrackedBy

func (s *ServiceManager) TrackedBy(st *status) *ServiceManager

TrackedBy by which status object.

func (*ServiceManager) Use

Use which ctrl.

func (*ServiceManager) WithContext

func (s *ServiceManager) WithContext(ctx context.Context) *ServiceManager

WithContext bind a context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL