MCPcopy
hub / github.com/argoproj/argo-cd / logAppEvent

Method logAppEvent

controller/appcontroller.go:2684–2687  ·  view source on GitHub ↗
(ctx context.Context, a *appv1.Application, eventInfo argo.EventInfo, message string)

Source from the content-addressed store, hash-verified

2682}
2683
2684func (ctrl *ApplicationController) logAppEvent(ctx context.Context, a *appv1.Application, eventInfo argo.EventInfo, message string) {
2685 eventLabels := argo.GetAppEventLabels(ctx, a, applisters.NewAppProjectLister(ctrl.projInformer.GetIndexer()), ctrl.namespace, ctrl.settingsMgr, ctrl.db)
2686 ctrl.auditLogger.LogAppEvent(a, eventInfo, message, "", eventLabels)
2687}
2688
2689func (ctrl *ApplicationController) applyImpersonationConfig(config *rest.Config, proj *appv1.AppProject, app *appv1.Application, destCluster *appv1.Cluster) error {
2690 impersonationEnabled, err := ctrl.settingsMgr.IsImpersonationEnabled()

Callers 4

setOperationStateMethod · 0.95
persistAppStatusMethod · 0.95
autoSyncMethod · 0.95

Calls 2

GetAppEventLabelsFunction · 0.92
LogAppEventMethod · 0.80

Tested by

no test coverage detected