Repository navigation
Conversation
Replace the kagenti-extensions-specific webhook build with a generic pattern that supports building from any dependency repo's branch or PR. Usage in /run-e2e comments: /run-e2e --build kagenti/kagenti-extensions=fix/my-branch /run-e2e --build kagenti/kagenti-extensions=pr/234 /run-e2e --build kagenti/kagenti-extensions=pr/234 --build kagenti/kagenti-operator=feat/new-crd Features: - Supports branch refs (upstream) and pr/<number> (works with forks) - Allow list restricts builds to trusted repos only - Dependency registry maps repos to build configs (context, namespace, helm path) - Logs all custom builds to CI output and GitHub step summary - Backwards compatible with --extensions-ref - Default builds kagenti-extensions webhook until chart fix is released New scripts: - 30-build-dep-image.sh: Generic image builder (OpenShift BuildConfig + Kind docker) - 31-build-deps-from-refs.sh: Orchestrator with dependency registry Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
The deployment name may differ from the image name depending on helm chart naming. Fall back to finding any deployment in the target namespace. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
Contributor
|
fyi just merged #1012 to avoid the direct shell parsing - that may be relevant to port here as well |
Contributor
Author
|
Combined into new CI infra PR. |
2 of 4 tasks
11 tasks
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.
Summary
Replace the kagenti-extensions-specific webhook build with a generic pattern that supports building from any dependency repo's branch or PR during HyperShift E2E tests.
Usage
How it works
/run-e2ecomment is parsed for--build org/repo=refflagskagenti/kagenti-extensions,kagenti/kagenti-operator)Adding a new dependency
Edit
31-build-deps-from-refs.shand add a case to thebuild_dep()function:your-org/your-repo) DEP_REPO="$repo" DEP_REF="$ref" \ DEP_CONTEXT="subdir-with-dockerfile" \ DEP_IMAGE_NAME="image-name" \ DEP_DEPLOY_NS="target-namespace" \ DEP_HELM_SET="chart.image.path" \ bash "$SCRIPT_DIR/30-build-dep-image.sh" ;;Then add it to
ALLOWED_REPOSin the workflow parser.Test plan
/run-e2ewith default (builds kagenti-extensions webhook)/run-e2e --build kagenti/kagenti-extensions=fix/proxy-init-drop-privileged/run-e2e --build kagenti/kagenti-extensions=pr/234🤖 Generated with Claude Code