Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAPIURLRegex ¶
GetAPIURLRegex compiles a regex that will match any targetRevision referring to the same repo as the given apiURL.
func GetWebURLRegex ¶
GetWebURLRegex compiles a regex that will match any targetRevision referring to the same repo as the given webURL. webURL is expected to be a URL from an SCM webhook payload pointing to the web page for the repo.
func ParseRevision ¶
Types ¶
type ArgoCDWebhookHandler ¶
type ArgoCDWebhookHandler struct {
sync.WaitGroup // for testing
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(namespace string, applicationNamespaces []string, webhookParallelism int, appClientset appclientset.Interface, appsLister alpha1.ApplicationLister, set *settings.ArgoCDSettings, settingsSrc settingsSource, repoCache *cache.Cache, serverCache *servercache.Cache, argoDB db.ArgoDB, maxWebhookPayloadSizeB int64) *ArgoCDWebhookHandler
func (*ArgoCDWebhookHandler) HandleEvent ¶
func (a *ArgoCDWebhookHandler) HandleEvent(payload any)
HandleEvent handles webhook events for repo push events
func (*ArgoCDWebhookHandler) Handler ¶
func (a *ArgoCDWebhookHandler) Handler(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.