Skip to content

Conversation

@bmangoen
Copy link
Contributor

What type of PR is this?

  • Enhancement / New Feature
  • Bug Fix
  • Refactor
  • Optimization
  • Test
  • Documentation Update

What this PR does / why we need it:

Reorganized the migration from sidecar to ambient mode doc part and added automation tests for migration from sidecar to ambient mode

Which issue(s) this PR fixes:

Fixes #1290

@bmangoen bmangoen requested a review from a team as a code owner November 24, 2025 20:41
@bmangoen bmangoen requested a review from fjglira November 24, 2025 20:41
@bmangoen bmangoen changed the title Add automation tests for migration from sidecar to ambient Add automation documentation tests for migration from sidecar to ambient Nov 24, 2025
@codecov
Copy link

codecov bot commented Nov 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 80.55%. Comparing base (ec1f62e) to head (d740b34).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1379   +/-   ##
=======================================
  Coverage   80.55%   80.55%           
=======================================
  Files          44       44           
  Lines        2299     2299           
=======================================
  Hits         1852     1852           
  Misses        328      328           
  Partials      119      119           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@fjglira fjglira left a comment

Choose a reason for hiding this comment

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

Looks preatty good in general


**Environment Validation:**
[source,console]
[source,bash,subs="attributes+"]
Copy link
Contributor

Choose a reason for hiding this comment

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

If you want to this command to be executed you will need to add this attribute also: name="istio-migrate-from-sidecar-to-ambient" with the same name of the test that we want to run

Copy link
Contributor

Choose a reason for hiding this comment

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

Think on this, every step that you want to be run during the test need to have this attribute

default istio-system 1 1 1 default Healthy v1.27.0 20m
----

ifdef::istio-migrate-from-sidecar-to-ambient[]
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no istio control plane installed. So, to achieve this validation we will need in a previous "setup" indef block to deploy the Istio control plane, what you can do is to add maybe a prebuilt function to deploy the Istio CR with default values

[source,console]
----
NAME NAMESPACE PROFILE REVISIONS READY IN USE ACTIVE REVISION STATUS VERSION AGE
default istio-system 1 1 1 default Healthy v1.27.0 20m
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default istio-system 1 1 1 default Healthy v1.27.0 20m
default istio-system 1 1 1 default Healthy v{istio_latest_version} 20m

# Confirm cluster setup validation passes
kubectl get ztunnel -n ztunnel
NAME NAMESPACE PROFILE READY STATUS VERSION AGE
default ztunnel True Healthy v1.27.0 12m
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
default ztunnel True Healthy v1.27.0 12m
default ztunnel True Healthy v{istio_latest_version} 12m

Reorganized doc and added automation test for migration from sidecar to ambient mode

Signed-off-by: bmangoen <[email protected]>
Adding prebuilt functions for creating default Istio resource, installing Bookinfo and creating Bookinfo Gateway

Signed-off-by: bmangoen <[email protected]>
@bmangoen bmangoen force-pushed the doc/automation-test-migration-sidecar-to-ambient branch from 5d5f234 to b83b8bc Compare November 27, 2025 13:51
@istio-testing
Copy link
Collaborator

@bmangoen: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
docs-test_sail-operator_main d740b34 link false /test docs-test

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create doc automation test for migration from sidecar to ambient documentation

3 participants