harbor

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetHarborCRError               = "Get harbor.goharbor.io CR error"
	CreateHarborCRError            = "Create harbor.goharbor.io CR error"
	ScaleHarborCRError             = "Scale harbor.goharbor.io CR error"
	UpdateHarborCRError            = "Update harbor.goharbor.io CR error"
	EmptyHarborCRStatusError       = "Empty harbor.goharbor.io CR status error"
	CreateRegistryCertError        = "Create Registry Cert error"
	AutoGenerateAdminPasswordError = "Auto generate admin password error"
)
View Source
const (
	ScalingEvent  = "Scaling"
	UpdatingEvent = "Updating"
)

Variables

This section is empty.

Functions

func IntToInt32Ptr

func IntToInt32Ptr(value int) *int32

Types

type HarborReconciler

type HarborReconciler struct {
	k8s.Client
	Ctx                 context.Context
	HarborCluster       *goharborv1.HarborCluster
	CurrentHarborCR     *v1alpha1.Harbor
	DesiredHarborCR     *v1alpha1.Harbor
	ImageGetter         image.Getter
	ComponentToCRStatus map[goharborv1.Component]*lcm.CRStatus
}

func (*HarborReconciler) CheckAdminPasswordSecret

func (harbor *HarborReconciler) CheckAdminPasswordSecret() error

CheckAdminPasswordSecret will check whether .spec.adminPassword is empty in HarborCluster. If empty, auto generate a secret.

func (*HarborReconciler) CheckIssuer

func (harbor *HarborReconciler) CheckIssuer() error

CheckIssuer check issuer has exist, if not will create issuer

func (*HarborReconciler) Delete

func (harbor *HarborReconciler) Delete() (*lcm.CRStatus, error)

func (*HarborReconciler) Provision

func (harbor *HarborReconciler) Provision() (*lcm.CRStatus, error)

Provision will create a new Harbor CR.

func (*HarborReconciler) Reconcile

func (harbor *HarborReconciler) Reconcile() (*lcm.CRStatus, error)

Reconciler implements the reconcile logic of services

func (*HarborReconciler) Scale

func (harbor *HarborReconciler) Scale() (*lcm.CRStatus, error)

ScaleUp will update replicas of all components, expect job service.

func (*HarborReconciler) ScaleDown

func (harbor *HarborReconciler) ScaleDown(newReplicas uint64) (*lcm.CRStatus, error)

func (*HarborReconciler) ScaleUp

func (harbor *HarborReconciler) ScaleUp(newReplicas uint64) (*lcm.CRStatus, error)

func (*HarborReconciler) Update

func (harbor *HarborReconciler) Update(spec *goharborv1.HarborCluster) (*lcm.CRStatus, error)

Jump to

Keyboard shortcuts

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