Skip to content

EPMDEDP-17247: feat: Reconcile EventListener labelSelector for declarative trigger registration - #303

Merged
SergK merged 1 commit into
masterfrom
add-label-to-trigger
Jul 31, 2026
Merged

EPMDEDP-17247: feat: Reconcile EventListener labelSelector for declarative trigger registration#303
SergK merged 1 commit into
masterfrom
add-label-to-trigger

Conversation

@SergK

@SergK SergK commented Jul 31, 2026

Copy link
Copy Markdown
Member

Triggers can now attach to a GitServer EventListener by carrying the app.edp.epam.com/gitServer label instead of being patched into spec.triggers imperatively, so custom triggers survive EventListener recreation.

  • add spec.labelSelector matching the GitServer name at EventListener creation, alongside the existing hardcoded triggers list
  • heal only the GitServer matchLabels entry on existing EventListeners so installs gain the selector on operator upgrade; spec.triggers and user-added selector entries are never modified
  • cover create, heal, drift-correction, and no-op paths with tests

…ative trigger registration

Triggers can now attach to a GitServer EventListener by carrying the
app.edp.epam.com/gitServer label instead of being patched into
spec.triggers imperatively, so custom triggers survive EventListener
recreation.

- add spec.labelSelector matching the GitServer name at EventListener
  creation, alongside the existing hardcoded triggers list
- heal only the GitServer matchLabels entry on existing EventListeners
  so installs gain the selector on operator upgrade; spec.triggers and
  user-added selector entries are never modified
- cover create, heal, drift-correction, and no-op paths with tests

Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>
@SergK
SergK requested a review from a team as a code owner July 31, 2026 13:15
@epmd-edp

Copy link
Copy Markdown
Collaborator

Pipeline review-codebase-operator-master-v6r7t ✅ Passed

Status Task Duration
github-set-pending-status 6s
fetch-repository 9s
init-values 5s
get-cache 2m9s
commit-validate 7s
dockerfile-lint 7s
helm-lint 5s
helm-docs 11s
build 1m2s
sonar 17s
save-cache 2m0s
buildkit-build 50s
github-report-pipeline-status 7s

@SergK
SergK merged commit ba1476f into master Jul 31, 2026
6 checks passed
@SergK
SergK deleted the add-label-to-trigger branch July 31, 2026 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants