Skip to content

EPMDEDP-17250: feat: label Codebases with a normalized gitUrlPath hash - #304

Merged
SergK merged 1 commit into
masterfrom
feature/EPMDEDP-17250
Aug 3, 2026
Merged

EPMDEDP-17250: feat: label Codebases with a normalized gitUrlPath hash#304
SergK merged 1 commit into
masterfrom
feature/EPMDEDP-17250

Conversation

@SergK

@SergK SergK commented Aug 3, 2026

Copy link
Copy Markdown
Member

Stamp app.edp.epam.com/gitUrlPathHash (first 128 bits of SHA-256 over the lowercased, slash-prefixed spec.gitUrlPath) so consumers can select the Codebase owning a repository with a label selector instead of listing the whole namespace on every webhook event.

  • converge the label on every reconcile since gitUrlPath is mutable, patch only on drift to avoid reconcile churn
  • backfill existing Codebases through normal reconciliation on operator upgrade; foreign and manually overridden labels are left untouched
  • freeze the hash as a wire format with golden-vector tests: the value is recomputed independently by edp-tekton and must never change; it is only a selection filter, consumers verify candidates against spec.gitUrlPath

Stamp app.edp.epam.com/gitUrlPathHash (first 128 bits of SHA-256 over the
lowercased, slash-prefixed spec.gitUrlPath) so consumers can select the
Codebase owning a repository with a label selector instead of listing the
whole namespace on every webhook event.

- converge the label on every reconcile since gitUrlPath is mutable, patch
  only on drift to avoid reconcile churn
- backfill existing Codebases through normal reconciliation on operator
  upgrade; foreign and manually overridden labels are left untouched
- freeze the hash as a wire format with golden-vector tests: the value is
  recomputed independently by edp-tekton and must never change; it is only
  a selection filter, consumers verify candidates against spec.gitUrlPath

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

epmd-edp commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

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

Status Task Duration
github-set-pending-status 7s
fetch-repository 10s
init-values 6s
get-cache 2m24s
commit-validate 6s
dockerfile-lint 9s
helm-lint 6s
helm-docs 12s
build 1m7s
sonar 24s
save-cache 2m58s
buildkit-build 2m14s
github-report-pipeline-status 10s

@SergK
SergK merged commit 4152c01 into master Aug 3, 2026
6 checks passed
@SergK
SergK deleted the feature/EPMDEDP-17250 branch August 3, 2026 13:19
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