Documentation ¶
Index ¶
- Constants
- func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
- type NetworkPolicy
- type Reconciler
- func (r *Reconciler) AddIngressNetworkPolicy(ctx context.Context, jobservice *goharborv1.JobService) (NetworkPolicy, error)
- func (r *Reconciler) AddNetworkPolicies(ctx context.Context, jobservice *goharborv1.JobService) error
- func (r *Reconciler) AddResources(ctx context.Context, resource resources.Resource) error
- func (r *Reconciler) GetConfigMap(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.ConfigMap, error)
- func (r *Reconciler) GetDeployment(ctx context.Context, jobservice *goharborv1.JobService) (*appsv1.Deployment, error)
- func (r *Reconciler) GetIngressNetworkPolicy(ctx context.Context, jobservice *goharborv1.JobService) (*netv1.NetworkPolicy, error)
- func (r *Reconciler) GetSecrets(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.Secret, error)
- func (r *Reconciler) GetService(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.Service, error)
- func (r *Reconciler) NewEmpty(_ context.Context) resources.Resource
- func (r *Reconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
- func (r *Reconciler) Template(ctx context.Context) (*template.ConfigTemplate, error)
Constants ¶
View Source
const ( ConfigVolumeName = "config" ScanDataExportsVolumeName = "job-scandata-exports" ScanDataExportsVolumePath = "/var/scandata_exports" LogsVolumeName = "logs" ConfigPath = "/etc/jobservice" HealthPath = "/api/v1/stats" JobLogsParentDir = "/mnt/joblogs" LogsParentDir = "/mnt/logs" InternalCertificatesVolumeName = "internal-certificates" InternalCertificatesPath = ConfigPath + "/ssl" InternalCertificateAuthorityDirectory = "/harbor_cust_cert" )
View Source
const ( DefaultRequeueWait = 2 * time.Second DefaultConfigTemplateFileName = "jobservice-config.yaml.tmpl" )
View Source
const (
ConfigName = "config.yml"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(ctx context.Context, configStore *configstore.Store) (commonCtrl.Reconciler, error)
Types ¶
type NetworkPolicy ¶
type Reconciler ¶
type Reconciler struct {
*commonCtrl.Controller
}
Reconciler reconciles a JobService object.
func (*Reconciler) AddIngressNetworkPolicy ¶
func (r *Reconciler) AddIngressNetworkPolicy(ctx context.Context, jobservice *goharborv1.JobService) (NetworkPolicy, error)
func (*Reconciler) AddNetworkPolicies ¶
func (r *Reconciler) AddNetworkPolicies(ctx context.Context, jobservice *goharborv1.JobService) error
func (*Reconciler) AddResources ¶
func (*Reconciler) GetConfigMap ¶
func (r *Reconciler) GetConfigMap(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.ConfigMap, error)
func (*Reconciler) GetDeployment ¶
func (r *Reconciler) GetDeployment(ctx context.Context, jobservice *goharborv1.JobService) (*appsv1.Deployment, error)
func (*Reconciler) GetIngressNetworkPolicy ¶
func (r *Reconciler) GetIngressNetworkPolicy(ctx context.Context, jobservice *goharborv1.JobService) (*netv1.NetworkPolicy, error)
func (*Reconciler) GetSecrets ¶
func (r *Reconciler) GetSecrets(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.Secret, error)
func (*Reconciler) GetService ¶
func (r *Reconciler) GetService(ctx context.Context, jobservice *goharborv1.JobService) (*corev1.Service, error)
func (*Reconciler) SetupWithManager ¶
func (*Reconciler) Template ¶
func (r *Reconciler) Template(ctx context.Context) (*template.ConfigTemplate, error)
Click to show internal directories.
Click to hide internal directories.