Skip to content

📖 add instructions to update Kagenti helm chart dependencies - #250

Merged
pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:add-doc-step
Oct 1, 2025
Merged

pdettori merged 1 commit into
rossoctl:mainfrom
pdettori:add-doc-step

Conversation

@pdettori

@pdettori pdettori commented Oct 1, 2025

Copy link
Copy Markdown
Member

Summary

Add instructions to update chart dependencies for Kagenti chart.

@pdettori
pdettori merged commit 81a7ac1 into rossoctl:main Oct 1, 2025
@pdettori
pdettori deleted the add-doc-step branch October 1, 2025 01:47
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]>
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]>
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.

1 participant