harbor

package
v1.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

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 (
	NCPIngressValueTrue     = "true"
	ContourIngressValueTrue = "true"
)
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"
	NotaryServerKeyAlgorithmDefaultConfig        = "ecdsa"
	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 GithubCredentialsConfigKey = "github-token"
View Source
const NotaryMigrationGithubSourceConfigKey = "notary-migration-github-source"
View Source
const (
	RegistryAuthRealm = "harbor-registry-basic-realm"
)
View Source
const TrivyGithubCredentialsConfigKey = "trivy-github-credentials" //nolint:gosec

Variables

This section is empty.

Functions

func New

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

Types

type ChartMuseum

type ChartMuseum graph.Resource

type ChartMuseumInternalCertificate

type ChartMuseumInternalCertificate graph.Resource

type Core

type Core graph.Resource

type CoreAdminPassword

type CoreAdminPassword graph.Resource

type CoreCSRF

type CoreCSRF graph.Resource

type CoreEncryptionKey

type CoreEncryptionKey graph.Resource

type CoreIngress

type CoreIngress graph.Resource

type CoreInternalCertificate

type CoreInternalCertificate graph.Resource

type CoreSecret

type CoreSecret graph.Resource

type CoreTokenCertificate

type CoreTokenCertificate graph.Resource

type ErrInvalidIngressController

type ErrInvalidIngressController struct {
	Controller harbormetav1.IngressController
}

func (ErrInvalidIngressController) Error

func (err ErrInvalidIngressController) Error() string

type Exporter

type Exporter graph.Resource

type ExporterInternalCertificate

type ExporterInternalCertificate graph.Resource

type GithubSource

type GithubSource struct {
	Owner      string `json:"owner"`
	Repository string `json:"repository"`
	Path       string `json:"path"`
	Reference  string `json:"reference"`
}

type InternalTLSCertificate

type InternalTLSCertificate graph.Resource

type InternalTLSCertificateAuthority

type InternalTLSCertificateAuthority graph.Resource

type InternalTLSCertificateAuthorityIssuer

type InternalTLSCertificateAuthorityIssuer graph.Resource

type InternalTLSIssuer

type InternalTLSIssuer graph.Resource

type JobService

type JobService graph.Resource

type JobServiceInternalCertificate

type JobServiceInternalCertificate graph.Resource

type JobServiceSecret

type JobServiceSecret graph.Resource

type NetworkPolicy

type NetworkPolicy graph.Resource

type NotaryIngress

type NotaryIngress graph.Resource

type NotaryServer

type NotaryServer graph.Resource

type NotaryServerCertificate

type NotaryServerCertificate graph.Resource

type NotaryServerInternalCertificate

type NotaryServerInternalCertificate graph.Resource

type NotarySigner

type NotarySigner graph.Resource

type NotarySignerCertificate

type NotarySignerCertificate graph.Resource

type NotarySignerCertificateAuthority

type NotarySignerCertificateAuthority graph.Resource

type NotarySignerCertificateAuthorityIssuer

type NotarySignerCertificateAuthorityIssuer graph.Resource

type NotarySignerCertificateIssuer

type NotarySignerCertificateIssuer graph.Resource

type NotarySignerEncryptionKey

type NotarySignerEncryptionKey graph.Resource

type NotarySignerMigrationSecret

type NotarySignerMigrationSecret graph.Resource

type Portal

type Portal graph.Resource

type PortalInternalCertificate

type PortalInternalCertificate graph.Resource

type Reconciler

type Reconciler struct {
	*commonCtrl.Controller
}

Reconciler reconciles a Harbor object.

func (*Reconciler) AddChartMuseum

func (r *Reconciler) AddChartMuseum(ctx context.Context, harbor *goharborv1.Harbor, certificate ChartMuseumInternalCertificate, coreSecret CoreSecret) (ChartMuseum, error)

func (*Reconciler) AddChartMuseumConfigurations

func (r *Reconciler) AddChartMuseumConfigurations(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (ChartMuseumInternalCertificate, error)

func (*Reconciler) AddChartMuseumIngressNetworkPolicy

func (r *Reconciler) AddChartMuseumIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddChartMuseumInternalCertificate

func (r *Reconciler) AddChartMuseumInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (ChartMuseumInternalCertificate, error)

func (*Reconciler) AddCore

func (r *Reconciler) AddCore(ctx context.Context, harbor *goharborv1.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 *goharborv1.Harbor) (CoreAdminPassword, error)

func (*Reconciler) AddCoreCSRF

func (r *Reconciler) AddCoreCSRF(ctx context.Context, harbor *goharborv1.Harbor) (CoreCSRF, error)

func (*Reconciler) AddCoreEncryptionKey

func (r *Reconciler) AddCoreEncryptionKey(ctx context.Context, harbor *goharborv1.Harbor) (CoreEncryptionKey, error)

func (*Reconciler) AddCoreIngress

func (r *Reconciler) AddCoreIngress(ctx context.Context, harbor *goharborv1.Harbor, core Core, portal Portal) (CoreIngress, error)

func (*Reconciler) AddCoreIngressNetworkPolicy

func (r *Reconciler) AddCoreIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddCoreInternalCertificate

func (r *Reconciler) AddCoreInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (CoreInternalCertificate, error)

func (*Reconciler) AddCoreSecret

func (r *Reconciler) AddCoreSecret(ctx context.Context, harbor *goharborv1.Harbor) (CoreSecret, error)

func (*Reconciler) AddCoreTokenCertificate

func (r *Reconciler) AddCoreTokenCertificate(ctx context.Context, harbor *goharborv1.Harbor) (CoreTokenCertificate, error)

func (*Reconciler) AddExporter

func (r *Reconciler) AddExporter(ctx context.Context, harbor *goharborv1.Harbor, core Core, certificate ExporterInternalCertificate) (Exporter, error)

func (*Reconciler) AddExporterConfigurations

func (r *Reconciler) AddExporterConfigurations(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (ExporterInternalCertificate, error)

func (*Reconciler) AddExporterInternalCertificate

func (r *Reconciler) AddExporterInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (ExporterInternalCertificate, error)

func (*Reconciler) AddInternalTLSCACertificate

func (*Reconciler) AddInternalTLSCAIssuer

func (r *Reconciler) AddInternalTLSCAIssuer(ctx context.Context, harbor *goharborv1.Harbor) (InternalTLSCertificateAuthorityIssuer, error)

func (*Reconciler) AddInternalTLSIssuer

func (r *Reconciler) AddInternalTLSIssuer(ctx context.Context, harbor *goharborv1.Harbor, ca InternalTLSCertificate) (InternalTLSIssuer, error)

func (*Reconciler) AddJobService

func (r *Reconciler) AddJobService(ctx context.Context, harbor *goharborv1.Harbor, core Core, certificate JobServiceInternalCertificate, coreSecret CoreSecret, jobServiceSecret JobServiceSecret) (JobService, error)

func (*Reconciler) AddJobServiceConfigurations

func (r *Reconciler) AddJobServiceConfigurations(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (JobServiceInternalCertificate, JobServiceSecret, error)

func (*Reconciler) AddJobServiceIngressNetworkPolicy

func (r *Reconciler) AddJobServiceIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddJobServiceInternalCertificate

func (r *Reconciler) AddJobServiceInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (JobServiceInternalCertificate, error)

func (*Reconciler) AddJobServiceSecret

func (r *Reconciler) AddJobServiceSecret(ctx context.Context, harbor *goharborv1.Harbor) (JobServiceSecret, error)

func (*Reconciler) AddNetworkPolicies

func (r *Reconciler) AddNetworkPolicies(ctx context.Context, harbor *goharborv1.Harbor) error

func (*Reconciler) AddNotaryIngress

func (r *Reconciler) AddNotaryIngress(ctx context.Context, harbor *goharborv1.Harbor, notary NotaryServer) (NotaryIngress, error)

func (*Reconciler) AddNotaryServer

func (r *Reconciler) AddNotaryServer(ctx context.Context, harbor *goharborv1.Harbor, certificate NotaryServerInternalCertificate, authCert NotaryServerCertificate) (NotaryServer, error)

func (*Reconciler) AddNotaryServerClientCertificate

func (r *Reconciler) AddNotaryServerClientCertificate(ctx context.Context, harbor *goharborv1.Harbor, issuer NotarySignerCertificateIssuer) (NotaryServerCertificate, error)

func (*Reconciler) AddNotaryServerIngressNetworkPolicy

func (r *Reconciler) AddNotaryServerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddNotaryServerInternalCertificate

func (r *Reconciler) AddNotaryServerInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (NotaryServerInternalCertificate, error)

func (*Reconciler) AddNotarySigner

func (r *Reconciler) AddNotarySigner(ctx context.Context, harbor *goharborv1.Harbor, certificate NotarySignerCertificate, encryptionKey NotarySignerEncryptionKey) (NotarySigner, error)

func (*Reconciler) AddNotarySignerCertificate

func (r *Reconciler) AddNotarySignerCertificate(ctx context.Context, harbor *goharborv1.Harbor, issuer NotarySignerCertificateIssuer) (NotarySignerCertificate, error)

func (*Reconciler) AddNotarySignerCertificateAuthorityIssuer

func (r *Reconciler) AddNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1.Harbor) (NotarySignerCertificateAuthorityIssuer, error)

func (*Reconciler) AddNotarySignerCertificateIssuer

func (r *Reconciler) AddNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1.Harbor, ca NotarySignerCertificateAuthority) (NotarySignerCertificateIssuer, error)

func (*Reconciler) AddNotarySignerEncryptionKey

func (r *Reconciler) AddNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1.Harbor) (NotarySignerEncryptionKey, error)

func (*Reconciler) AddNotarySignerIngressNetworkPolicy

func (r *Reconciler) AddNotarySignerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddPortal

func (*Reconciler) AddPortalEgressNetworkPolicy

func (r *Reconciler) AddPortalEgressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddPortalIngressNetworkPolicy

func (r *Reconciler) AddPortalIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddPortalInternalCertificate

func (r *Reconciler) AddPortalInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (PortalInternalCertificate, error)

func (*Reconciler) AddRegistry

func (r *Reconciler) AddRegistry(ctx context.Context, harbor *goharborv1.Harbor, certificate RegistryInternalCertificate, authSecret RegistryAuthSecret, httpSecret RegistryHTTPSecret) (Registry, error)

func (*Reconciler) AddRegistryAuthenticationSecret

func (r *Reconciler) AddRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1.Harbor) (RegistryAuthSecret, error)

func (*Reconciler) AddRegistryController

func (*Reconciler) AddRegistryControllerIngressNetworkPolicy

func (r *Reconciler) AddRegistryControllerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddRegistryControllerInternalCertificate

func (r *Reconciler) AddRegistryControllerInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (RegistryControllerInternalCertificate, error)

func (*Reconciler) AddRegistryHTTPSecret

func (r *Reconciler) AddRegistryHTTPSecret(ctx context.Context, harbor *goharborv1.Harbor) (RegistryHTTPSecret, error)

func (*Reconciler) AddRegistryIngressNetworkPolicy

func (r *Reconciler) AddRegistryIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddRegistryInternalCertificate

func (r *Reconciler) AddRegistryInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (RegistryInternalCertificate, error)

func (*Reconciler) AddResources

func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error

func (*Reconciler) AddTrivy

func (r *Reconciler) AddTrivy(ctx context.Context, harbor *goharborv1.Harbor, certificate TrivyInternalCertificate, secretUpdate TrivyUpdateSecret) (Trivy, error)

func (*Reconciler) AddTrivyConfigurations

func (r *Reconciler) AddTrivyConfigurations(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (TrivyInternalCertificate, TrivyUpdateSecret, error)

func (*Reconciler) AddTrivyIngressNetworkPolicy

func (r *Reconciler) AddTrivyIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (NetworkPolicy, error)

func (*Reconciler) AddTrivyInternalCertificate

func (r *Reconciler) AddTrivyInternalCertificate(ctx context.Context, harbor *goharborv1.Harbor, tlsIssuer InternalTLSIssuer) (TrivyInternalCertificate, error)

func (*Reconciler) AddTrivyUpdateSecret

func (r *Reconciler) AddTrivyUpdateSecret(ctx context.Context, harbor *goharborv1.Harbor) (TrivyUpdateSecret, error)

func (*Reconciler) ChartMuseumStorage

func (*Reconciler) GetCSRFSecret

func (r *Reconciler) GetCSRFSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetChartMuseum

func (r *Reconciler) GetChartMuseum(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.ChartMuseum, error)

func (*Reconciler) GetChartMuseumIngressNetworkPolicy

func (r *Reconciler) GetChartMuseumIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetCore

func (r *Reconciler) GetCore(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.Core, error)

func (*Reconciler) GetCoreAdminPassword

func (r *Reconciler) GetCoreAdminPassword(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetCoreEncryptionKey

func (r *Reconciler) GetCoreEncryptionKey(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetCoreIngress

func (r *Reconciler) GetCoreIngress(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.Ingress, error)

func (*Reconciler) GetCoreIngressAnnotations

func (r *Reconciler) GetCoreIngressAnnotations(ctx context.Context, harbor *goharborv1.Harbor) map[string]string

func (*Reconciler) GetCoreIngressNetworkPolicy

func (r *Reconciler) GetCoreIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetCoreIngressRuleValue

func (r *Reconciler) GetCoreIngressRuleValue(ctx context.Context, harbor *goharborv1.Harbor, core, portal *netv1.IngressBackend) (*netv1.IngressRuleValue, error)

func (*Reconciler) GetCoreIngressRules

func (r *Reconciler) GetCoreIngressRules(ctx context.Context, harbor *goharborv1.Harbor) ([]netv1.IngressRule, error)

func (*Reconciler) GetCoreSecret

func (r *Reconciler) GetCoreSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetCoreTokenCertificate

func (r *Reconciler) GetCoreTokenCertificate(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Certificate, error)

func (*Reconciler) GetDefaultGithubToken

func (r *Reconciler) GetDefaultGithubToken() (string, error)

func (*Reconciler) GetDefaultNotaryMigrationSource

func (r *Reconciler) GetDefaultNotaryMigrationSource() (*GithubSource, error)

func (*Reconciler) GetExporter

func (r *Reconciler) GetExporter(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.Exporter, error)

func (*Reconciler) GetGithubToken

func (r *Reconciler) GetGithubToken(configKey string) (string, error)

func (*Reconciler) GetInternalTLSCertificate

func (r *Reconciler) GetInternalTLSCertificate(ctx context.Context, harbor *goharborv1.Harbor, component harbormetav1.ComponentWithTLS) (*certv1.Certificate, error)

func (*Reconciler) GetInternalTLSCertificateAuthority

func (r *Reconciler) GetInternalTLSCertificateAuthority(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Certificate, error)

func (*Reconciler) GetInternalTLSCertificateAuthorityIssuer

func (r *Reconciler) GetInternalTLSCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Issuer, error)

func (*Reconciler) GetInternalTLSCertificateName

func (r *Reconciler) GetInternalTLSCertificateName(ctx context.Context, harbor *goharborv1.Harbor, component harbormetav1.ComponentWithTLS) string

func (*Reconciler) GetInternalTLSCertificateSecretName

func (r *Reconciler) GetInternalTLSCertificateSecretName(ctx context.Context, harbor *goharborv1.Harbor, component harbormetav1.ComponentWithTLS) string

func (*Reconciler) GetInternalTLSIssuer

func (r *Reconciler) GetInternalTLSIssuer(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Issuer, error)

func (*Reconciler) GetJobService

func (r *Reconciler) GetJobService(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.JobService, error)

func (*Reconciler) GetJobServiceIngressNetworkPolicy

func (r *Reconciler) GetJobServiceIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetJobServiceSecret

func (r *Reconciler) GetJobServiceSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetNotaryIngressAnnotations

func (r *Reconciler) GetNotaryIngressAnnotations(ctx context.Context, harbor *goharborv1.Harbor) map[string]string

func (*Reconciler) GetNotaryIngressRules

func (r *Reconciler) GetNotaryIngressRules(ctx context.Context, harbor *goharborv1.Harbor) ([]netv1.IngressRule, error)

func (*Reconciler) GetNotaryServer

func (r *Reconciler) GetNotaryServer(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.NotaryServer, error)

func (*Reconciler) GetNotaryServerCertificate

func (r *Reconciler) GetNotaryServerCertificate(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Certificate, error)

func (*Reconciler) GetNotaryServerIngress

func (r *Reconciler) GetNotaryServerIngress(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.Ingress, error)

func (*Reconciler) GetNotaryServerIngressNetworkPolicy

func (r *Reconciler) GetNotaryServerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetNotarySigner

func (r *Reconciler) GetNotarySigner(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.NotarySigner, error)

func (*Reconciler) GetNotarySignerCertificate

func (r *Reconciler) GetNotarySignerCertificate(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Certificate, error)

func (*Reconciler) GetNotarySignerCertificateAuthority

func (r *Reconciler) GetNotarySignerCertificateAuthority(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Certificate, error)

func (*Reconciler) GetNotarySignerCertificateAuthorityIssuer

func (r *Reconciler) GetNotarySignerCertificateAuthorityIssuer(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Issuer, error)

func (*Reconciler) GetNotarySignerCertificateIssuer

func (r *Reconciler) GetNotarySignerCertificateIssuer(ctx context.Context, harbor *goharborv1.Harbor) (*certv1.Issuer, error)

func (*Reconciler) GetNotarySignerEncryptionKey

func (r *Reconciler) GetNotarySignerEncryptionKey(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetNotarySignerIngressNetworkPolicy

func (r *Reconciler) GetNotarySignerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetPortal

func (r *Reconciler) GetPortal(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.Portal, error)

func (*Reconciler) GetPortalEgressNetworkPolicy

func (r *Reconciler) GetPortalEgressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetPortalIngressNetworkPolicy

func (r *Reconciler) GetPortalIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetRegistry

func (r *Reconciler) GetRegistry(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.Registry, error)

func (*Reconciler) GetRegistryAuthenticationSecret

func (r *Reconciler) GetRegistryAuthenticationSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetRegistryControllerIngressNetworkPolicy

func (r *Reconciler) GetRegistryControllerIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetRegistryCtl

func (r *Reconciler) GetRegistryCtl(ctx context.Context, harbor *goharborv1.Harbor) (*goharborv1.RegistryController, error)

func (*Reconciler) GetRegistryHTTPSecret

func (r *Reconciler) GetRegistryHTTPSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) GetRegistryIngressNetworkPolicy

func (r *Reconciler) GetRegistryIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetTrivy

func (r *Reconciler) GetTrivy(ctx context.Context, harbor *goharborv1.Harbor, hasUpdateSecret bool) (*goharborv1.Trivy, error)

func (*Reconciler) GetTrivyIngressNetworkPolicy

func (r *Reconciler) GetTrivyIngressNetworkPolicy(ctx context.Context, harbor *goharborv1.Harbor) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetTrivyUpdateSecret

func (r *Reconciler) GetTrivyUpdateSecret(ctx context.Context, harbor *goharborv1.Harbor) (*corev1.Secret, error)

func (*Reconciler) JobServiceScanDataExportsStorage

func (r *Reconciler) JobServiceScanDataExportsStorage(ctx context.Context, harbor *goharborv1.Harbor) goharborv1.JobServiceStorageVolumeSpec

func (*Reconciler) NewEmpty

func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource

func (*Reconciler) RegistryStorage

func (*Reconciler) SetupWithManager

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

func (*Reconciler) TrivyCacheStorage

func (r *Reconciler) TrivyCacheStorage(ctx context.Context, harbor *goharborv1.Harbor) goharborv1.TrivyStorageVolumeSpec

func (*Reconciler) TrivyReportsStorage

func (r *Reconciler) TrivyReportsStorage(ctx context.Context, harbor *goharborv1.Harbor) goharborv1.TrivyStorageVolumeSpec

type Registry

type Registry graph.Resource

type RegistryAuthSecret

type RegistryAuthSecret graph.Resource

type RegistryController

type RegistryController graph.Resource

type RegistryControllerInternalCertificate

type RegistryControllerInternalCertificate graph.Resource

type RegistryHTTPSecret

type RegistryHTTPSecret graph.Resource

type RegistryInternalCertificate

type RegistryInternalCertificate graph.Resource

type Trivy

type Trivy graph.Resource

type TrivyInternalCertificate

type TrivyInternalCertificate graph.Resource

type TrivyUpdateSecret

type TrivyUpdateSecret graph.Resource

Jump to

Keyboard shortcuts

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