project

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: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHarborCfgNotFound         = errors.New("harbor server configuration not found")
	ErrUnexpectedHarborCfgStatus = errors.New("status of Harbor server referred in configuration %s is unexpected")
)

Functions

func New

func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)

New HarborProject reconciler.

Types

type Reconciler

type Reconciler struct {
	*commonCtrl.Controller
	Scheme              *runtime.Scheme
	Harbor              *v2.Client
	RequeueAfterMinutes int
}

Reconciler reconciles a project cr.

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 does project reconcile.

func (*Reconciler) SetupWithManager

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

Jump to

Keyboard shortcuts

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