EPMDEDP-17250: feat: label Codebases with a normalized gitUrlPath hash - #304
Merged
Conversation
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>
Collaborator
Pipeline
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.