Documentation ¶
Overview ¶
Copyright (c) 2021-2024 SUSE LLC
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GitFetcher ¶
type GitRepoPollJob ¶
func NewGitRepoPollJob ¶
func NewGitRepoPollJob(c client.Client, f GitFetcher, gitRepo v1alpha1.GitRepo) *GitRepoPollJob
func (*GitRepoPollJob) Description ¶
func (j *GitRepoPollJob) Description() string
func (*GitRepoPollJob) String ¶
func (j *GitRepoPollJob) String() string
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles all the watches for the git repositories. These watches are pulling the latest commit every syncPeriod.
func (*Handler) AddOrModifyGitRepoPollJob ¶
AddOrModifyGitRepoPollJob adds a new scheduled job for the gitrepo if no job was already present. It updates the existing job for this gitrepo if present.
func (*Handler) CleanUpGitRepoPollJobs ¶
CleanUpGitRepoPollJobs removes all poll jobs whose gitrepo is not present in the cluster.
Click to show internal directories.
Click to hide internal directories.