Documentation ¶
Index ¶
- Constants
- func IntToInt32Ptr(value int) *int32
- type HarborReconciler
- func (harbor *HarborReconciler) CheckAdminPasswordSecret() error
- func (harbor *HarborReconciler) CheckIssuer() error
- func (harbor *HarborReconciler) Delete() (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) Provision() (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) Reconcile() (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) Scale() (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) ScaleDown(newReplicas uint64) (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) ScaleUp(newReplicas uint64) (*lcm.CRStatus, error)
- func (harbor *HarborReconciler) Update(spec *goharborv1.HarborCluster) (*lcm.CRStatus, error)
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 ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.