portal

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

Documentation

Index

Constants

View Source
const (
	ConfigVolumeName                      = "config"
	LogsVolumeName                        = "logs"
	ConfigPath                            = "/etc/nginx"
	HealthPath                            = "/"
	JobLogsParentDir                      = "/mnt/joblogs"
	LogsParentDir                         = "/mnt/logs"
	InternalCertificatesVolumeName        = "internal-certificates"
	InternalCertificatesPath              = "/etc/portal/ssl"
	InternalCertificateAuthorityDirectory = "/harbor_cust_cert"
)
View Source
const ConfigName = "nginx.conf"
View Source
const DefaultConfigTemplateFileName = "portal-config.conf.tmpl"

Variables

This section is empty.

Functions

func New

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

Types

type NetworkPolicy

type NetworkPolicy graph.Resource

type Reconciler

type Reconciler struct {
	*commonCtrl.Controller
}

Reconciler reconciles a Portal object.

func (*Reconciler) AddEgressNetworkPolicy

func (r *Reconciler) AddEgressNetworkPolicy(ctx context.Context, portal *goharborv1.Portal) (NetworkPolicy, error)

func (*Reconciler) AddIngressNetworkPolicy

func (r *Reconciler) AddIngressNetworkPolicy(ctx context.Context, portal *goharborv1.Portal) (NetworkPolicy, error)

func (*Reconciler) AddNetworkPolicies

func (r *Reconciler) AddNetworkPolicies(ctx context.Context, portal *goharborv1.Portal) error

func (*Reconciler) AddResources

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

func (*Reconciler) GetConfigMap

func (r *Reconciler) GetConfigMap(ctx context.Context, portal *goharborv1.Portal) (*corev1.ConfigMap, error)

func (*Reconciler) GetDeployment

func (r *Reconciler) GetDeployment(ctx context.Context, portal *goharborv1.Portal) (*appsv1.Deployment, error)

func (*Reconciler) GetEgressNetworkPolicy

func (r *Reconciler) GetEgressNetworkPolicy(ctx context.Context, portal *goharborv1.Portal) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetIngressNetworkPolicy

func (r *Reconciler) GetIngressNetworkPolicy(ctx context.Context, portal *goharborv1.Portal) (*netv1.NetworkPolicy, error)

func (*Reconciler) GetService

func (r *Reconciler) GetService(ctx context.Context, portal *goharborv1.Portal) (*corev1.Service, error)

func (*Reconciler) NewEmpty

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

func (*Reconciler) SetupWithManager

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

func (*Reconciler) Template

func (r *Reconciler) Template(ctx context.Context) (*template.ConfigTemplate, error)

Jump to

Keyboard shortcuts

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