Repository navigation
Conversation
The kagenti-webhook chart (v0.4.0-alpha.5) still uses privileged: true for the proxy-init container. Until kagenti-extensions#234 is released with capabilities instead, default to building the webhook from the fix branch so all HyperShift E2E runs pass without manual --extensions-ref. Remove this default after bumping the webhook chart dependency. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
The Dockerfile expects go.mod at the build context root, but the build was sending the entire repo root. Change --from-dir to point at the kagenti-webhook/ subdirectory and update dockerfilePath accordingly. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
The rollout restart assumed deployment name 'kagenti-webhook' but the actual name depends on the helm chart's fullnameOverride. Find the deployment dynamically and skip if not found. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
OpenShift auto-creates ClusterRoles for built-in SCCs (anyuid, privileged, etc.) but does not reliably do so for custom SCCs. The RoleBinding in agent-namespaces.yaml references system:openshift:scc:kagenti-authbridge which may not exist, causing "Forbidden: not usable by user or serviceaccount". Create the ClusterRole explicitly in the Helm chart so the RoleBinding works immediately. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
The port-forward script grabbed the pod name once and failed if the pod disappeared (eviction, restart, slow startup). Now retries for up to 2 minutes, re-querying the deployment each iteration, and outputs diagnostic events on failure. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
Two fixes: 1. Port-forward: use kubectl wait for deployment condition instead of kubectl exec (which targets sidecar container, not the agent) 2. Default KAGENTI_EXTENSIONS_REF to main (fix merged as rossoctl#242) Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
requiredDropCapabilities: ALL forces every container to specify capabilities.drop: [ALL], but the webhook-injected sidecars (envoy, spiffe-helper, client-registration) don't set this. The SCC rejects the pod because only the proxy-init container drops ALL capabilities. Change to MKNOD (matching anyuid SCC pattern) so sidecars and agent containers aren't rejected for missing capabilities.drop: [ALL]. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
|
/run-e2e |
The packaged webhook chart (v0.4.0-alpha.5) uses proxy-init:latest which was updated by extensions#250 and is now incompatible with the old webhook binary (missing POD_IP env var injection). Add webhook rebuild between platform install and agent deploy on Kind, matching the HyperShift CI pattern. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
…d fixes Replace the webhook-specific build script with a generic pattern that supports building any dependency from branch, tag, PR number, or commit SHA. Hardcoded override section in deploy scripts defaults to building kagenti-extensions@main until the webhook chart is bumped past v0.4.0-alpha.8. Remove the hardcoded entry after bumping the chart dependency. Ref formats: branch, tag, pr/<number>, <commit-sha> New scripts: - 30-build-dep-image.sh: Generic image builder with dep registry - 31-build-deps-from-refs.sh: Orchestrator reading KAGENTI_DEP_BUILDS JSON Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
|
/run-e2e |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
Parse --build org/repo=ref flags from /run-e2e comments to build dependency images from custom branches, PRs, or commits. Examples: /run-e2e --build kagenti/kagenti-extensions=fix/my-branch /run-e2e --build kagenti/kagenti-extensions=pr/234 /run-e2e --build kagenti/kagenti-extensions=a5607f9 /run-e2e --build kagenti/kagenti-extensions=pr/234 --build kagenti/kagenti-operator=feat/new-crd Security: only repos in the allow list are accepted (kagenti/kagenti-extensions, kagenti/kagenti-operator). Backwards compatible with --extensions-ref. Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
8a40fe4 to
f31374b
Compare
|
/run-e2e |
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
f31374b to
e3a5477
Compare
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
|
Superseded by new PR with proper explanation of combined changes. |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
E2E HyperShift Tests FailedCommit: To re-run tests after fixing issues, comment |
Summary
CI infrastructure fixes split from #998 per review feedback.
kagenti-authbridgeSCC with explicit ClusterRole for OpenShift agent namespacesrequiredDropCapabilitiesfromALLtoMKNOD(sidecars don't specifydrop: ALL)kagenti-webhook/subdir) and dynamic deployment discoverykubectl waitfor deployment readiness instead ofkubectl exec(which targets sidecar container)KAGENTI_EXTENSIONS_REF=mainto build webhook from extensions main (has merged 🐛 add volumes and volume mounts to agents as well #242 fix)Test plan
🤖 Generated with Claude Code