Repository navigation
📖 add instructions to update Kagenti helm chart dependencies - #250
Merged
Merged
Conversation
Signed-off-by: Paolo Dettori <[email protected]>
Ladas
added a commit
to Ladas/kagenti
that referenced
this pull request
Mar 17, 2026
…orward ## What broke PR rossoctl#933 merged the custom `kagenti-authbridge` SCC for OpenShift agent namespaces. This SCC is needed because the kagenti-webhook injects an AuthBridge sidecar stack into agent pods (proxy-init, envoy, spiffe-helper, client-registration) that requires specific UIDs and NET_ADMIN/NET_RAW capabilities. Shortly after, kagenti-extensions#242 and rossoctl#250 merged, which: 1. Replaced privileged mode with NET_ADMIN/NET_RAW capabilities in the webhook (good) 2. Started pushing :latest image tags on every merge to main (good) 3. But the :latest proxy-init image now requires POD_IP env var that the OLD webhook chart (v0.4.0-alpha.5) doesn't inject (broke CI) This created a version mismatch: the packaged webhook chart (v0.4.0-alpha.5) creates init containers WITHOUT the POD_IP env var, but pulls proxy-init:latest which now requires it. Result: proxy-init CrashLoopBackOff on every CI run. ## Why these fixes must be combined The fixes span SCC configuration, image builds, and deploy scripts because the root cause is a version mismatch between the packaged chart dependency and unreleased upstream fixes. Until kagenti-extensions releases a new chart version (>= v0.4.0-alpha.9), CI must build the webhook from source. ## Fixes **SCC (OpenShift):** - Custom `kagenti-authbridge` SCC: allows NET_ADMIN/NET_RAW + RunAsAny UID - Relaxed requiredDropCapabilities from ALL to MKNOD (sidecars don't specify drop:ALL, causing pod rejection) - Explicit ClusterRole (OpenShift doesn't auto-create for custom SCCs) **Dependency builds from source:** - Generic `30-build-dep-image.sh`: builds any dep from branch, tag, pr/<number>, or commit SHA - Registry `31-build-deps-from-refs.sh`: maps repos to build configs with allow list (kagenti-extensions, kagenti-operator) - Hardcoded default: builds kagenti-extensions@main on both Kind and HyperShift until the chart dependency is bumped - /run-e2e --build org/repo=ref for ad-hoc overrides (after merge) **Port-forward (Kind):** - Use kubectl wait for deployment readiness instead of kubectl exec (exec targets injected sidecar container, not the agent) ## After kagenti-extensions releases new chart Remove the hardcoded KAGENTI_DEP_BUILDS defaults from: - .github/scripts/hypershift/ci/70-deploy-kagenti.sh - .github/scripts/local-setup/kind-full-test.sh And bump Chart.yaml: kagenti-webhook-chart >= v0.4.0-alpha.9 Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
2 of 4 tasks
3 tasks
Ladas
added a commit
to Ladas/kagenti
that referenced
this pull request
Mar 18, 2026
…orward ## What broke PR rossoctl#933 merged the custom `kagenti-authbridge` SCC for OpenShift agent namespaces. This SCC is needed because the kagenti-webhook injects an AuthBridge sidecar stack into agent pods (proxy-init, envoy, spiffe-helper, client-registration) that requires specific UIDs and NET_ADMIN/NET_RAW capabilities. Shortly after, kagenti-extensions#242 and rossoctl#250 merged, which: 1. Replaced privileged mode with NET_ADMIN/NET_RAW capabilities in the webhook (good) 2. Started pushing :latest image tags on every merge to main (good) 3. But the :latest proxy-init image now requires POD_IP env var that the OLD webhook chart (v0.4.0-alpha.5) doesn't inject (broke CI) This created a version mismatch: the packaged webhook chart (v0.4.0-alpha.5) creates init containers WITHOUT the POD_IP env var, but pulls proxy-init:latest which now requires it. Result: proxy-init CrashLoopBackOff on every CI run. ## Why these fixes must be combined The fixes span SCC configuration, image builds, and deploy scripts because the root cause is a version mismatch between the packaged chart dependency and unreleased upstream fixes. Until kagenti-extensions releases a new chart version (>= v0.4.0-alpha.9), CI must build the webhook from source. ## Fixes **SCC (OpenShift):** - Custom `kagenti-authbridge` SCC: allows NET_ADMIN/NET_RAW + RunAsAny UID - Relaxed requiredDropCapabilities from ALL to MKNOD (sidecars don't specify drop:ALL, causing pod rejection) - Explicit ClusterRole (OpenShift doesn't auto-create for custom SCCs) **Dependency builds from source:** - Generic `30-build-dep-image.sh`: builds any dep from branch, tag, pr/<number>, or commit SHA - Registry `31-build-deps-from-refs.sh`: maps repos to build configs with allow list (kagenti-extensions, kagenti-operator) - Hardcoded default: builds kagenti-extensions@main on both Kind and HyperShift until the chart dependency is bumped - /run-e2e --build org/repo=ref for ad-hoc overrides (after merge) **Port-forward (Kind):** - Use kubectl wait for deployment readiness instead of kubectl exec (exec targets injected sidecar container, not the agent) ## After kagenti-extensions releases new chart Remove the hardcoded KAGENTI_DEP_BUILDS defaults from: - .github/scripts/hypershift/ci/70-deploy-kagenti.sh - .github/scripts/local-setup/kind-full-test.sh And bump Chart.yaml: kagenti-webhook-chart >= v0.4.0-alpha.9 Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
Ladas
added a commit
to Ladas/kagenti
that referenced
this pull request
Mar 19, 2026
…orward ## What broke PR rossoctl#933 merged the custom `kagenti-authbridge` SCC for OpenShift agent namespaces. This SCC is needed because the kagenti-webhook injects an AuthBridge sidecar stack into agent pods (proxy-init, envoy, spiffe-helper, client-registration) that requires specific UIDs and NET_ADMIN/NET_RAW capabilities. Shortly after, kagenti-extensions#242 and rossoctl#250 merged, which: 1. Replaced privileged mode with NET_ADMIN/NET_RAW capabilities in the webhook (good) 2. Started pushing :latest image tags on every merge to main (good) 3. But the :latest proxy-init image now requires POD_IP env var that the OLD webhook chart (v0.4.0-alpha.5) doesn't inject (broke CI) This created a version mismatch: the packaged webhook chart (v0.4.0-alpha.5) creates init containers WITHOUT the POD_IP env var, but pulls proxy-init:latest which now requires it. Result: proxy-init CrashLoopBackOff on every CI run. ## Why these fixes must be combined The fixes span SCC configuration, image builds, and deploy scripts because the root cause is a version mismatch between the packaged chart dependency and unreleased upstream fixes. Until kagenti-extensions releases a new chart version (>= v0.4.0-alpha.9), CI must build the webhook from source. ## Fixes **SCC (OpenShift):** - Custom `kagenti-authbridge` SCC: allows NET_ADMIN/NET_RAW + RunAsAny UID - Relaxed requiredDropCapabilities from ALL to MKNOD (sidecars don't specify drop:ALL, causing pod rejection) - Explicit ClusterRole (OpenShift doesn't auto-create for custom SCCs) **Dependency builds from source:** - Generic `30-build-dep-image.sh`: builds any dep from branch, tag, pr/<number>, or commit SHA - Registry `31-build-deps-from-refs.sh`: maps repos to build configs with allow list (kagenti-extensions, kagenti-operator) - Hardcoded default: builds kagenti-extensions@main on both Kind and HyperShift until the chart dependency is bumped - /run-e2e --build org/repo=ref for ad-hoc overrides (after merge) **Port-forward (Kind):** - Use kubectl wait for deployment readiness instead of kubectl exec (exec targets injected sidecar container, not the agent) ## After kagenti-extensions releases new chart Remove the hardcoded KAGENTI_DEP_BUILDS defaults from: - .github/scripts/hypershift/ci/70-deploy-kagenti.sh - .github/scripts/local-setup/kind-full-test.sh And bump Chart.yaml: kagenti-webhook-chart >= v0.4.0-alpha.9 Signed-off-by: Ladislav Smola <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Ladislav Smola <[email protected]>
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
Add instructions to update chart dependencies for Kagenti chart.