Skip to content

🐛 fix preload images option on installer - #432

Merged
pdettori merged 10 commits into
rossoctl:mainfrom
pdettori:fix-kind-install
Dec 8, 2025
Merged

pdettori merged 10 commits into
rossoctl:mainfrom
pdettori:fix-kind-install

Conversation

@pdettori

@pdettori pdettori commented Dec 2, 2025

Copy link
Copy Markdown
Member

Summary

fix preload images option on installer

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the preload images functionality in the Kagenti installer by addressing compatibility issues with the latest Rancher Desktop VZ virtualization and adding better error handling for image operations.

Key Changes:

  • Replaces kind load docker-image with a direct container image import approach using docker save, docker cp, and ctr images import
  • Adds explicit docker image pulling with failure reporting before loading into kind
  • Updates dependency lock file to add test dependencies and fix urllib3 version constraint
  • Updates preloaded container images to newer versions (Istio 1.26.0 → 1.28.0, kindnetd updated)

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.

File Description
uv.lock Adds test dependencies (pytest, httpx, etc.), fixes urllib3 version to comply with <2.1.0 constraint, and updates package resolution markers for Python 3.13
deployments/ansible/roles/kagenti_installer/tasks/02_setup_cluster.yaml Implements new image preloading logic with explicit docker pull, error reporting, and raw container import instead of kind load docker-image
deployments/ansible/kind/preload-images.txt Updates Istio images to version 1.28.0, updates kindnetd version, and removes unused curlimages/curl image

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 5 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deployments/ansible/README.md Resolved
Comment thread docs/demos.md Resolved

@rubambiza rubambiza left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

pdettori and others added 10 commits December 5, 2025 20:26
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paolo Dettori <[email protected]>
@pdettori
pdettori merged commit d10f86e into rossoctl:main Dec 8, 2025
@pdettori
pdettori deleted the fix-kind-install branch December 8, 2025 03:25
huang195 added a commit that referenced this pull request May 23, 2026
Companion to kagenti-extensions PR #432, which replaces the bundled
spiffe-helper binary with an in-process go-spiffe SDK integration.
The new authbridge image expects two schema changes:

  * a top-level `spiffe:` block (empty mapping when SPIRE is enabled)
    that signals the framework to construct the in-process Provider
    (X.509 source for mTLS + lazy JWT source for tokenexchange);
  * a per-plugin `tokenexchange.identity.jwt_audience` field carrying
    the JWT-SVID client-assertion audience (replaces the audience that
    spiffe-helper previously baked into helper.conf).

Updates the two places kagenti emits authbridge config so both Helm-
installed and backend-API-created agents render the new shape:

  * charts/kagenti/templates/{authbridge-template-configmaps,
    agent-namespaces}.yaml — render the spiffe block + jwt_audience.
    JWT_AUDIENCE env var (dead code; nothing reads it) dropped from
    authbridge-config ConfigMap.
  * kagenti/backend/app/routers/agents.py:_build_authbridge_runtime_yaml
    and the matching tests — same shape change for backend-rendered
    ConfigMaps.

Adds the optional `jwt_audience` field on the UI's IdentityConfig
type so the form/validation surface stays in sync.

Backward compatibility with the OLD authbridge image (during rollout):
both schema changes are additive — the old image's YAML decoder
silently drops unknown keys, so deployments running the old image
keep working with the new chart. spiffe-helper-config ConfigMap and
the helper.conf rendering are intentionally left in place; they are
no-ops against the new image and required by the old one.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
eranra pushed a commit to eranra/kagenti that referenced this pull request May 24, 2026
Companion to kagenti-extensions PR rossoctl#432, which replaces the bundled
spiffe-helper binary with an in-process go-spiffe SDK integration.
The new authbridge image expects two schema changes:

  * a top-level `spiffe:` block (empty mapping when SPIRE is enabled)
    that signals the framework to construct the in-process Provider
    (X.509 source for mTLS + lazy JWT source for tokenexchange);
  * a per-plugin `tokenexchange.identity.jwt_audience` field carrying
    the JWT-SVID client-assertion audience (replaces the audience that
    spiffe-helper previously baked into helper.conf).

Updates the two places kagenti emits authbridge config so both Helm-
installed and backend-API-created agents render the new shape:

  * charts/kagenti/templates/{authbridge-template-configmaps,
    agent-namespaces}.yaml — render the spiffe block + jwt_audience.
    JWT_AUDIENCE env var (dead code; nothing reads it) dropped from
    authbridge-config ConfigMap.
  * kagenti/backend/app/routers/agents.py:_build_authbridge_runtime_yaml
    and the matching tests — same shape change for backend-rendered
    ConfigMaps.

Adds the optional `jwt_audience` field on the UI's IdentityConfig
type so the form/validation surface stays in sync.

Backward compatibility with the OLD authbridge image (during rollout):
both schema changes are additive — the old image's YAML decoder
silently drops unknown keys, so deployments running the old image
keep working with the new chart. spiffe-helper-config ConfigMap and
the helper.conf rendering are intentionally left in place; they are
no-ops against the new image and required by the old one.

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>

Signed-off-by: Eran Raichstein <[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.

3 participants