Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, name string, configStore *configstore.Store) (commonCtrl.Reconciler, error)
- type ChartMuseum
- type ChartMuseumInternalCertificate
- type Core
- type CoreAdminPassword
- type CoreCSRF
- type CoreEncryptionKey
- type CoreIngress
- type CoreInternalCertificate
- type CoreSecret
- type CoreTokenCertificate
- type ErrInvalidIngressController
- type GithubSource
- type InternalTLSCertificate
- type InternalTLSCertificateAuthority
- type InternalTLSCertificateAuthorityIssuer
- type InternalTLSIssuer
- type JobService
- type JobServiceInternalCertificate
- type JobServiceSecret
- type NotaryIngress
- type NotaryServer
- type NotaryServerCertificate
- type NotaryServerInternalCertificate
- type NotarySigner
- type NotarySignerCertificate
- type NotarySignerCertificateAuthority
- type NotarySignerCertificateAuthorityIssuer
- type NotarySignerCertificateIssuer
- type NotarySignerEncryptionKey
- type NotarySignerMigrationSecret
- type Portal
- type PortalInternalCertificate
- type Reconciler
- func (r *Reconciler) AddChartMuseum(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (ChartMuseum, error)
- func (r *Reconciler) AddChartMuseumConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (ChartMuseumInternalCertificate, error)
- func (r *Reconciler) AddChartMuseumInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (ChartMuseumInternalCertificate, error)
- func (r *Reconciler) AddCore(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (Core, error)
- func (r *Reconciler) AddCoreAdminPassword(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreAdminPassword, error)
- func (r *Reconciler) AddCoreCSRF(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreCSRF, error)
- func (r *Reconciler) AddCoreConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (CoreInternalCertificate, CoreCSRF, CoreTokenCertificate, CoreSecret, ...)
- func (r *Reconciler) AddCoreEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreEncryptionKey, error)
- func (r *Reconciler) AddCoreIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor, core Core, portal Portal) (CoreIngress, error)
- func (r *Reconciler) AddCoreInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (CoreInternalCertificate, error)
- func (r *Reconciler) AddCoreSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreSecret, error)
- func (r *Reconciler) AddCoreTokenCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreTokenCertificate, error)
- func (r *Reconciler) AddInternalTLSCACertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (InternalTLSCertificateAuthority, error)
- func (r *Reconciler) AddInternalTLSCAIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (InternalTLSCertificateAuthorityIssuer, error)
- func (r *Reconciler) AddInternalTLSConfiguration(ctx context.Context, harbor *goharborv1alpha2.Harbor) (InternalTLSCertificateAuthorityIssuer, InternalTLSCertificateAuthority, ...)
- func (r *Reconciler) AddInternalTLSIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (InternalTLSIssuer, error)
- func (r *Reconciler) AddJobService(ctx context.Context, harbor *goharborv1alpha2.Harbor, core Core, ...) (JobService, error)
- func (r *Reconciler) AddJobServiceConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (JobServiceInternalCertificate, JobServiceSecret, error)
- func (r *Reconciler) AddJobServiceInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (JobServiceInternalCertificate, error)
- func (r *Reconciler) AddJobServiceSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (JobServiceSecret, error)
- func (r *Reconciler) AddNotaryIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor, notary NotaryServer) (NotaryIngress, error)
- func (r *Reconciler) AddNotaryServer(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotaryServer, error)
- func (r *Reconciler) AddNotaryServerClientCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotaryServerCertificate, error)
- func (r *Reconciler) AddNotaryServerConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotaryServerCertificate, NotaryServerInternalCertificate, error)
- func (r *Reconciler) AddNotaryServerInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotaryServerInternalCertificate, error)
- func (r *Reconciler) AddNotarySigner(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotarySigner, error)
- func (r *Reconciler) AddNotarySignerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotarySignerCertificate, error)
- func (r *Reconciler) AddNotarySignerCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotarySignerCertificateAuthority, error)
- func (r *Reconciler) AddNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerCertificateAuthorityIssuer, error)
- func (r *Reconciler) AddNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (NotarySignerCertificateIssuer, error)
- func (r *Reconciler) AddNotarySignerConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerCertificateIssuer, NotarySignerCertificate, ...)
- func (r *Reconciler) AddNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerEncryptionKey, error)
- func (r *Reconciler) AddPortal(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (PortalInternalCertificate, Portal, error)
- func (r *Reconciler) AddPortalInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (PortalInternalCertificate, error)
- func (r *Reconciler) AddRegistry(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (Registry, error)
- func (r *Reconciler) AddRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (RegistryAuthSecret, error)
- func (r *Reconciler) AddRegistryConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (RegistryInternalCertificate, RegistryAuthSecret, RegistryHTTPSecret, error)
- func (r *Reconciler) AddRegistryController(ctx context.Context, harbor *goharborv1alpha2.Harbor, registry Registry, ...) (RegistryControllerInternalCertificate, RegistryController, error)
- func (r *Reconciler) AddRegistryControllerInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (RegistryControllerInternalCertificate, error)
- func (r *Reconciler) AddRegistryHTTPSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (RegistryHTTPSecret, error)
- func (r *Reconciler) AddRegistryInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (RegistryInternalCertificate, error)
- func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error
- func (r *Reconciler) AddTrivy(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (Trivy, error)
- func (r *Reconciler) AddTrivyConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (TrivyInternalCertificate, TrivyUpdateSecret, error)
- func (r *Reconciler) AddTrivyInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (TrivyInternalCertificate, error)
- func (r *Reconciler) AddTrivyUpdateSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (TrivyUpdateSecret, error)
- func (r *Reconciler) ChartMuseumStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.ChartMuseumChartStorageDriverSpec
- func (r *Reconciler) GetCSRFSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetChartMuseum(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.ChartMuseum, error)
- func (r *Reconciler) GetCore(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Core, error)
- func (r *Reconciler) GetCoreAdminPassword(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetCoreEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetCoreIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*netv1.Ingress, error)
- func (r *Reconciler) GetCoreIngressAnnotations(ctx context.Context, harbor *goharborv1alpha2.Harbor) map[string]string
- func (r *Reconciler) GetCoreIngressRuleValue(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (*netv1.IngressRuleValue, error)
- func (r *Reconciler) GetCoreIngressRules(ctx context.Context, harbor *goharborv1alpha2.Harbor) ([]netv1.IngressRule, error)
- func (r *Reconciler) GetCoreSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetCoreTokenCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
- func (r *Reconciler) GetDefaultGithubToken() (string, error)
- func (r *Reconciler) GetDefaultNotaryMigrationSource() (*GithubSource, error)
- func (r *Reconciler) GetGithubToken(configKey string) (string, error)
- func (r *Reconciler) GetInternalTLSCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) (*certv1.Certificate, error)
- func (r *Reconciler) GetInternalTLSCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
- func (r *Reconciler) GetInternalTLSCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
- func (r *Reconciler) GetInternalTLSCertificateName(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) string
- func (r *Reconciler) GetInternalTLSCertificateSecretName(ctx context.Context, harbor *goharborv1alpha2.Harbor, ...) string
- func (r *Reconciler) GetInternalTLSIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
- func (r *Reconciler) GetJobService(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.JobService, error)
- func (r *Reconciler) GetJobServiceSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetNotaryIngressAnnotations(ctx context.Context, harbor *goharborv1alpha2.Harbor) map[string]string
- func (r *Reconciler) GetNotaryServer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.NotaryServer, error)
- func (r *Reconciler) GetNotaryServerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
- func (r *Reconciler) GetNotaryServerIngresse(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*netv1.Ingress, error)
- func (r *Reconciler) GetNotarySigner(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.NotarySigner, error)
- func (r *Reconciler) GetNotarySignerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
- func (r *Reconciler) GetNotarySignerCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
- func (r *Reconciler) GetNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
- func (r *Reconciler) GetNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
- func (r *Reconciler) GetNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetPortal(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Portal, error)
- func (r *Reconciler) GetRegistry(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Registry, error)
- func (r *Reconciler) GetRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetRegistryCtl(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.RegistryController, error)
- func (r *Reconciler) GetRegistryHTTPSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) GetTrivy(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Trivy, error)
- func (r *Reconciler) GetTrivyUpdateSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
- func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource
- func (r *Reconciler) RegistryStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.RegistryStorageDriverSpec
- func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (r *Reconciler) TrivyCacheStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.TrivyStorageVolumeSpec
- func (r *Reconciler) TrivyReportsStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.TrivyStorageVolumeSpec
- type Registry
- type RegistryAuthSecret
- type RegistryController
- type RegistryControllerInternalCertificate
- type RegistryHTTPSecret
- type RegistryInternalCertificate
- type Trivy
- type TrivyInternalCertificate
- type TrivyUpdateSecret
Constants ¶
View Source
const ( CoreAdminPasswordLength = 32 CoreAdminPasswordNumDigits = 5 CoreAdminPasswordNumSpecials = 10 )
View Source
const ( CoreSecretPasswordLength = 128 CoreSecretPasswordNumDigits = 16 CoreSecretPasswordNumSpecials = 48 )
View Source
const ( CoreTokenServiceDefaultKeySize = 4096 CoreTokenServiceDefaultCertificateDuration = 3 * 30 * 24 * time.Hour )
View Source
const ( EncryptionKeyLength = 16 EncryptionKeyNumDigits = 8 EncryptionKeyNumSpecials = 2 )
View Source
const ( CSRFSecretPasswordLength = 32 CSRFSecretPasswordNumDigits = 5 CSRFSecretPasswordNumSpecials = 0 )
View Source
const ( DefaultIngressAnnotationsEnabled = true IngressAnnotationsEnabledCOnfigKey = "ingress-annotations-enabled" )
View Source
const ( InternalTLSCertificateAuthorityDurationConfigKey = "internal-tls-certificate-authority-duration" InternalTLSCertificateAuthorityDurationDefaultConfig = 365 * 24 * time.Hour )
View Source
const ( InternalTLSDurationConfigKey = "internal-tls-duration" InternalTLSDurationDefaultConfig = 90 * 24 * time.Hour )
View Source
const ( JobServiceSecretLength = 16 JobServiceSecretNumDigits = 6 JobServiceSecretNumSpecials = 6 )
View Source
const ( NotaryServerCertificateDurationConfigKey = "notaryserver-certificate-duration" NotaryServerCertificateDurationDefaultConfig = 90 * 24 * time.Hour )
View Source
const ( NotaryServerCertificateAlgorithmConfigKey = "notaryserver-certificate-algorithm" NotaryServerCertificateAlgorithmDefaultConfig = certv1.ECDSAKeyAlgorithm )
View Source
const ( TokenServiceIssuer = "harbor-token-issuer" NotaryServerAuthenticationService = "harbor-notary" )
View Source
const ( NotarySignerCertificateAuthorityDurationConfigKey = "notary-signer-certificate-authority-duration" NotarySignerCertificateAuthorityDurationDefaultConfig = 365 * 24 * time.Hour )
View Source
const ( NotarySignerEncryptionKeyLength = 128 NotarySignerEncryptionKeyNumDigits = 16 NotarySignerEncryptionKeyNumSpecials = 48 )
View Source
const ( NotarySignerCertificateDurationConfigKey = "notarysigner-certificate-duration" NotarySignerCertificateDurationDefaultConfig = 90 * 24 * time.Hour )
View Source
const ( NotarySignerCertificateAlgorithmConfigKey = "notarysigner-certificate-algorithm" NotarySignerCertificateAlgorithmDefaultConfig = certv1.ECDSAKeyAlgorithm )
View Source
const ( // https://github.com/goharbor/harbor/blob/master/make/photon/prepare/utils/configs.py#L14 RegistryAuthenticationUsername = "harbor_registry_user" RegistryAuthenticationPasswordLength = 32 RegistryAuthenticationPasswordNumDigits = 10 RegistryAuthenticationPasswordNumSpecials = 10 )
View Source
const ( RegistrySecretPasswordLength = 128 RegistrySecretPasswordNumDigits = 16 RegistrySecretPasswordNumSpecials = 48 )
View Source
const (
ChartMuseumAuthenticationUsername = "chart_controller"
)
View Source
const (
ConfigRegistryEncryptionCostKey = "registry-encryption-cost"
)
View Source
const (
DefaultJobServiceLogSweeper = 14 * time.Hour
)
View Source
const (
DefaultRequeueWait = 2 * time.Second
)
View Source
const GithubCredentialsConfigKey = "github-token"
View Source
const NotaryMigrationGithubCredentialsConfigKey = "notary-migration-github-credentials"
View Source
const NotaryMigrationGithubSourceConfigKey = "notary-migration-github-source"
View Source
const (
RegistryAuthRealm = "harbor-registry-basic-realm"
)
View Source
const TrivyGithubCredentialsConfigKey = "trivy-github-credentials"
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, name string, configStore *configstore.Store) (commonCtrl.Reconciler, error)
Types ¶
type ChartMuseum ¶
type CoreAdminPassword ¶
type CoreEncryptionKey ¶
type CoreIngress ¶
type CoreInternalCertificate ¶
type CoreSecret ¶
type CoreTokenCertificate ¶
type ErrInvalidIngressController ¶
type ErrInvalidIngressController struct {
Controller harbormetav1.IngressController
}
func (ErrInvalidIngressController) Error ¶
func (err ErrInvalidIngressController) Error() string
type GithubSource ¶
type InternalTLSCertificate ¶
type InternalTLSIssuer ¶
type JobService ¶
type JobServiceSecret ¶
type NotaryIngress ¶
type NotaryServer ¶
type NotaryServerCertificate ¶
type NotarySigner ¶
type NotarySignerCertificate ¶
type Reconciler ¶
type Reconciler struct {
*commonCtrl.Controller
}
Reconciler reconciles a Harbor object.
func (*Reconciler) AddChartMuseum ¶
func (r *Reconciler) AddChartMuseum(ctx context.Context, harbor *goharborv1alpha2.Harbor, certificate ChartMuseumInternalCertificate, coreSecret CoreSecret) (ChartMuseum, error)
func (*Reconciler) AddChartMuseumConfigurations ¶
func (r *Reconciler) AddChartMuseumConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (ChartMuseumInternalCertificate, error)
func (*Reconciler) AddChartMuseumInternalCertificate ¶
func (r *Reconciler) AddChartMuseumInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (ChartMuseumInternalCertificate, error)
func (*Reconciler) AddCore ¶
func (r *Reconciler) AddCore(ctx context.Context, harbor *goharborv1alpha2.Harbor, coreCertificate CoreInternalCertificate, registryAuth RegistryAuthSecret, csrf CoreCSRF, tokenCertificate CoreTokenCertificate, secret CoreSecret, adminPassword CoreAdminPassword, encryptionKey CoreEncryptionKey) (Core, error)
func (*Reconciler) AddCoreAdminPassword ¶
func (r *Reconciler) AddCoreAdminPassword(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreAdminPassword, error)
func (*Reconciler) AddCoreCSRF ¶
func (r *Reconciler) AddCoreCSRF(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreCSRF, error)
func (*Reconciler) AddCoreConfigurations ¶
func (r *Reconciler) AddCoreConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (CoreInternalCertificate, CoreCSRF, CoreTokenCertificate, CoreSecret, CoreAdminPassword, CoreEncryptionKey, error)
func (*Reconciler) AddCoreEncryptionKey ¶
func (r *Reconciler) AddCoreEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreEncryptionKey, error)
func (*Reconciler) AddCoreIngress ¶
func (r *Reconciler) AddCoreIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor, core Core, portal Portal) (CoreIngress, error)
func (*Reconciler) AddCoreInternalCertificate ¶
func (r *Reconciler) AddCoreInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (CoreInternalCertificate, error)
func (*Reconciler) AddCoreSecret ¶
func (r *Reconciler) AddCoreSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreSecret, error)
func (*Reconciler) AddCoreTokenCertificate ¶
func (r *Reconciler) AddCoreTokenCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (CoreTokenCertificate, error)
func (*Reconciler) AddInternalTLSCACertificate ¶
func (r *Reconciler) AddInternalTLSCACertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, caIssuer InternalTLSCertificateAuthorityIssuer) (InternalTLSCertificateAuthority, error)
func (*Reconciler) AddInternalTLSCAIssuer ¶
func (r *Reconciler) AddInternalTLSCAIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (InternalTLSCertificateAuthorityIssuer, error)
func (*Reconciler) AddInternalTLSConfiguration ¶
func (r *Reconciler) AddInternalTLSConfiguration(ctx context.Context, harbor *goharborv1alpha2.Harbor) (InternalTLSCertificateAuthorityIssuer, InternalTLSCertificateAuthority, InternalTLSIssuer, error)
func (*Reconciler) AddInternalTLSIssuer ¶
func (r *Reconciler) AddInternalTLSIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor, ca InternalTLSCertificate) (InternalTLSIssuer, error)
func (*Reconciler) AddJobService ¶
func (r *Reconciler) AddJobService(ctx context.Context, harbor *goharborv1alpha2.Harbor, core Core, certificate JobServiceInternalCertificate, coreSecret CoreSecret, jobServiceSecret JobServiceSecret) (JobService, error)
func (*Reconciler) AddJobServiceConfigurations ¶
func (r *Reconciler) AddJobServiceConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (JobServiceInternalCertificate, JobServiceSecret, error)
func (*Reconciler) AddJobServiceInternalCertificate ¶
func (r *Reconciler) AddJobServiceInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (JobServiceInternalCertificate, error)
func (*Reconciler) AddJobServiceSecret ¶
func (r *Reconciler) AddJobServiceSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (JobServiceSecret, error)
func (*Reconciler) AddNotaryIngress ¶
func (r *Reconciler) AddNotaryIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor, notary NotaryServer) (NotaryIngress, error)
func (*Reconciler) AddNotaryServer ¶
func (r *Reconciler) AddNotaryServer(ctx context.Context, harbor *goharborv1alpha2.Harbor, certificate NotaryServerInternalCertificate, authCert NotaryServerCertificate) (NotaryServer, error)
func (*Reconciler) AddNotaryServerClientCertificate ¶
func (r *Reconciler) AddNotaryServerClientCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, issuer NotarySignerCertificateIssuer) (NotaryServerCertificate, error)
func (*Reconciler) AddNotaryServerConfigurations ¶
func (r *Reconciler) AddNotaryServerConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer, notaryIssuer NotarySignerCertificateIssuer) (NotaryServerCertificate, NotaryServerInternalCertificate, error)
func (*Reconciler) AddNotaryServerInternalCertificate ¶
func (r *Reconciler) AddNotaryServerInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (NotaryServerInternalCertificate, error)
func (*Reconciler) AddNotarySigner ¶
func (r *Reconciler) AddNotarySigner(ctx context.Context, harbor *goharborv1alpha2.Harbor, certificate NotarySignerCertificate, encryptionKey NotarySignerEncryptionKey) (NotarySigner, error)
func (*Reconciler) AddNotarySignerCertificate ¶
func (r *Reconciler) AddNotarySignerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, issuer NotarySignerCertificateIssuer) (NotarySignerCertificate, error)
func (*Reconciler) AddNotarySignerCertificateAuthority ¶
func (r *Reconciler) AddNotarySignerCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor, issuer NotarySignerCertificateAuthorityIssuer) (NotarySignerCertificateAuthority, error)
func (*Reconciler) AddNotarySignerCertificateAuthorityIssuer ¶
func (r *Reconciler) AddNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerCertificateAuthorityIssuer, error)
func (*Reconciler) AddNotarySignerCertificateIssuer ¶
func (r *Reconciler) AddNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor, ca NotarySignerCertificateAuthority) (NotarySignerCertificateIssuer, error)
func (*Reconciler) AddNotarySignerConfigurations ¶
func (r *Reconciler) AddNotarySignerConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerCertificateIssuer, NotarySignerCertificate, NotarySignerEncryptionKey, error)
func (*Reconciler) AddNotarySignerEncryptionKey ¶
func (r *Reconciler) AddNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (NotarySignerEncryptionKey, error)
func (*Reconciler) AddPortal ¶
func (r *Reconciler) AddPortal(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (PortalInternalCertificate, Portal, error)
func (*Reconciler) AddPortalInternalCertificate ¶
func (r *Reconciler) AddPortalInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (PortalInternalCertificate, error)
func (*Reconciler) AddRegistry ¶
func (r *Reconciler) AddRegistry(ctx context.Context, harbor *goharborv1alpha2.Harbor, certificate RegistryInternalCertificate, authSecret RegistryAuthSecret, httpSecret RegistryHTTPSecret) (Registry, error)
func (*Reconciler) AddRegistryAuthenticationSecret ¶
func (r *Reconciler) AddRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (RegistryAuthSecret, error)
func (*Reconciler) AddRegistryConfigurations ¶
func (r *Reconciler) AddRegistryConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (RegistryInternalCertificate, RegistryAuthSecret, RegistryHTTPSecret, error)
func (*Reconciler) AddRegistryController ¶
func (r *Reconciler) AddRegistryController(ctx context.Context, harbor *goharborv1alpha2.Harbor, registry Registry, tlsIssuer InternalTLSIssuer) (RegistryControllerInternalCertificate, RegistryController, error)
func (*Reconciler) AddRegistryControllerInternalCertificate ¶
func (r *Reconciler) AddRegistryControllerInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (RegistryControllerInternalCertificate, error)
func (*Reconciler) AddRegistryHTTPSecret ¶
func (r *Reconciler) AddRegistryHTTPSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (RegistryHTTPSecret, error)
func (*Reconciler) AddRegistryInternalCertificate ¶
func (r *Reconciler) AddRegistryInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (RegistryInternalCertificate, error)
func (*Reconciler) AddResources ¶
func (*Reconciler) AddTrivy ¶
func (r *Reconciler) AddTrivy(ctx context.Context, harbor *goharborv1alpha2.Harbor, certificate TrivyInternalCertificate, seretUpdate TrivyUpdateSecret) (Trivy, error)
func (*Reconciler) AddTrivyConfigurations ¶
func (r *Reconciler) AddTrivyConfigurations(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (TrivyInternalCertificate, TrivyUpdateSecret, error)
func (*Reconciler) AddTrivyInternalCertificate ¶
func (r *Reconciler) AddTrivyInternalCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, tlsIssuer InternalTLSIssuer) (TrivyInternalCertificate, error)
func (*Reconciler) AddTrivyUpdateSecret ¶
func (r *Reconciler) AddTrivyUpdateSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (TrivyUpdateSecret, error)
func (*Reconciler) ChartMuseumStorage ¶
func (r *Reconciler) ChartMuseumStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.ChartMuseumChartStorageDriverSpec
func (*Reconciler) GetCSRFSecret ¶
func (r *Reconciler) GetCSRFSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetChartMuseum ¶
func (r *Reconciler) GetChartMuseum(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.ChartMuseum, error)
func (*Reconciler) GetCore ¶
func (r *Reconciler) GetCore(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Core, error)
func (*Reconciler) GetCoreAdminPassword ¶
func (r *Reconciler) GetCoreAdminPassword(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetCoreEncryptionKey ¶
func (r *Reconciler) GetCoreEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetCoreIngress ¶
func (r *Reconciler) GetCoreIngress(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*netv1.Ingress, error)
func (*Reconciler) GetCoreIngressAnnotations ¶
func (r *Reconciler) GetCoreIngressAnnotations(ctx context.Context, harbor *goharborv1alpha2.Harbor) map[string]string
func (*Reconciler) GetCoreIngressRuleValue ¶
func (r *Reconciler) GetCoreIngressRuleValue(ctx context.Context, harbor *goharborv1alpha2.Harbor, core, portal netv1.IngressBackend) (*netv1.IngressRuleValue, error)
func (*Reconciler) GetCoreIngressRules ¶
func (r *Reconciler) GetCoreIngressRules(ctx context.Context, harbor *goharborv1alpha2.Harbor) ([]netv1.IngressRule, error)
func (*Reconciler) GetCoreSecret ¶
func (r *Reconciler) GetCoreSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetCoreTokenCertificate ¶
func (r *Reconciler) GetCoreTokenCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
func (*Reconciler) GetDefaultGithubToken ¶
func (r *Reconciler) GetDefaultGithubToken() (string, error)
func (*Reconciler) GetDefaultNotaryMigrationSource ¶
func (r *Reconciler) GetDefaultNotaryMigrationSource() (*GithubSource, error)
func (*Reconciler) GetGithubToken ¶
func (r *Reconciler) GetGithubToken(configKey string) (string, error)
func (*Reconciler) GetInternalTLSCertificate ¶
func (r *Reconciler) GetInternalTLSCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor, component harbormetav1.ComponentWithTLS) (*certv1.Certificate, error)
func (*Reconciler) GetInternalTLSCertificateAuthority ¶
func (r *Reconciler) GetInternalTLSCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
func (*Reconciler) GetInternalTLSCertificateAuthorityIssuer ¶
func (r *Reconciler) GetInternalTLSCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
func (*Reconciler) GetInternalTLSCertificateName ¶
func (r *Reconciler) GetInternalTLSCertificateName(ctx context.Context, harbor *goharborv1alpha2.Harbor, component harbormetav1.ComponentWithTLS) string
func (*Reconciler) GetInternalTLSCertificateSecretName ¶
func (r *Reconciler) GetInternalTLSCertificateSecretName(ctx context.Context, harbor *goharborv1alpha2.Harbor, component harbormetav1.ComponentWithTLS) string
func (*Reconciler) GetInternalTLSIssuer ¶
func (r *Reconciler) GetInternalTLSIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
func (*Reconciler) GetJobService ¶
func (r *Reconciler) GetJobService(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.JobService, error)
func (*Reconciler) GetJobServiceSecret ¶
func (r *Reconciler) GetJobServiceSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetNotaryIngressAnnotations ¶
func (r *Reconciler) GetNotaryIngressAnnotations(ctx context.Context, harbor *goharborv1alpha2.Harbor) map[string]string
func (*Reconciler) GetNotaryServer ¶
func (r *Reconciler) GetNotaryServer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.NotaryServer, error)
func (*Reconciler) GetNotaryServerCertificate ¶
func (r *Reconciler) GetNotaryServerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
func (*Reconciler) GetNotaryServerIngresse ¶
func (r *Reconciler) GetNotaryServerIngresse(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*netv1.Ingress, error)
func (*Reconciler) GetNotarySigner ¶
func (r *Reconciler) GetNotarySigner(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.NotarySigner, error)
func (*Reconciler) GetNotarySignerCertificate ¶
func (r *Reconciler) GetNotarySignerCertificate(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
func (*Reconciler) GetNotarySignerCertificateAuthority ¶
func (r *Reconciler) GetNotarySignerCertificateAuthority(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Certificate, error)
func (*Reconciler) GetNotarySignerCertificateAuthorityIssuer ¶
func (r *Reconciler) GetNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
func (*Reconciler) GetNotarySignerCertificateIssuer ¶
func (r *Reconciler) GetNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*certv1.Issuer, error)
func (*Reconciler) GetNotarySignerEncryptionKey ¶
func (r *Reconciler) GetNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetPortal ¶
func (r *Reconciler) GetPortal(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Portal, error)
func (*Reconciler) GetRegistry ¶
func (r *Reconciler) GetRegistry(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Registry, error)
func (*Reconciler) GetRegistryAuthenticationSecret ¶
func (r *Reconciler) GetRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetRegistryCtl ¶
func (r *Reconciler) GetRegistryCtl(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.RegistryController, error)
func (*Reconciler) GetRegistryHTTPSecret ¶
func (r *Reconciler) GetRegistryHTTPSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) GetTrivy ¶
func (r *Reconciler) GetTrivy(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*goharborv1alpha2.Trivy, error)
func (*Reconciler) GetTrivyUpdateSecret ¶
func (r *Reconciler) GetTrivyUpdateSecret(ctx context.Context, harbor *goharborv1alpha2.Harbor) (*corev1.Secret, error)
func (*Reconciler) RegistryStorage ¶
func (r *Reconciler) RegistryStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.RegistryStorageDriverSpec
func (*Reconciler) SetupWithManager ¶
func (*Reconciler) TrivyCacheStorage ¶
func (r *Reconciler) TrivyCacheStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.TrivyStorageVolumeSpec
func (*Reconciler) TrivyReportsStorage ¶
func (r *Reconciler) TrivyReportsStorage(ctx context.Context, harbor *goharborv1alpha2.Harbor) goharborv1alpha2.TrivyStorageVolumeSpec
type RegistryAuthSecret ¶
type RegistryController ¶
type RegistryHTTPSecret ¶
type TrivyUpdateSecret ¶
Click to show internal directories.
Click to hide internal directories.