Skip to content

Add "Validate ZTunnel values" workflow#1588

Open
MaxBab wants to merge 2 commits into
istio-ecosystem:mainfrom
MaxBab:add_validate_ztunnel_values_workflow
Open

Add "Validate ZTunnel values" workflow#1588
MaxBab wants to merge 2 commits into
istio-ecosystem:mainfrom
MaxBab:add_validate_ztunnel_values_workflow

Conversation

@MaxBab

@MaxBab MaxBab commented Feb 11, 2026

Copy link
Copy Markdown
Collaborator

What type of PR is this?

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

What this PR does / why we need it:

Ztunnel values under Sail Operator needs to be updated manually for each new created helm value.
Create a github action workflow, that will validate existing Sail Operator ZTunnel config exposed values and compare them to upstream Istio helm values.
Once a difference found, a missing value will be shows and an Issue will be created in order to add this value to the Sail Operator.

Which issue(s) this PR fixes:

Fixes #763

Related Issue/PR #

Additional information:

@MaxBab MaxBab requested a review from a team as a code owner February 11, 2026 08:27
@codecov

codecov Bot commented Feb 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.51%. Comparing base (86b79a9) to head (d65d2e3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1588   +/-   ##
=======================================
  Coverage   76.51%   76.51%           
=======================================
  Files          58       58           
  Lines        3181     3181           
=======================================
  Hits         2434     2434           
  Misses        609      609           
  Partials      138      138           
Flag Coverage Δ
integration-tests 70.20% <ø> (ø)
unit-tests 52.56% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.

@MaxBab MaxBab force-pushed the add_validate_ztunnel_values_workflow branch 2 times, most recently from 9155639 to 255d307 Compare February 11, 2026 10:22
Comment thread hack/validate_ztunnel_values/validate_ztunnel_values.go
Comment thread .github/workflows/validate_ztunnel_values.yaml
Comment thread hack/validate_ztunnel_values/validate_ztunnel_values.go Outdated
@MaxBab MaxBab force-pushed the add_validate_ztunnel_values_workflow branch from 255d307 to 578f70d Compare May 28, 2026 13:03
@MaxBab

MaxBab commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

/test e2e-kind-multicluster

@MaxBab MaxBab requested a review from nrfox May 28, 2026 13:33
@MaxBab

MaxBab commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @nrfox

Could you take a look, please?

@MaxBab

MaxBab commented May 28, 2026

Copy link
Copy Markdown
Collaborator Author

/test e2e-kind-multicluster

@MaxBab

MaxBab commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @nrfox

Appreciate you review.

@dgn

dgn commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Hi @MaxBab I tested your branch locally and fixed some issues I found. If you're okay with my changes I'll approve and we can get it this merged

@dgn dgn force-pushed the add_validate_ztunnel_values_workflow branch from f6b1094 to 07eab2f Compare June 30, 2026 13:29
Ztunnel values under Sail Operator needs to be updated manually for each
new created helm value.
Create a github action workflow, that will validate existing Sail
Operator ZTunnel config exposed values and compare them to upstream
Istio helm values.
Once a difference found, a missing value will be shows and an Issue will
be created in order to add this value to the Sail Operator.

Signed-off-by: Maxim Babushkin <mbabushk@redhat.com>
Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
@dgn dgn force-pushed the add_validate_ztunnel_values_workflow branch from 07eab2f to 722ffd0 Compare June 30, 2026 13:31
This adds nested field detection and it looks for missing fields in both
the ZTunnelConfig and ZTunnelGlobalConfig structs as they're flattened
in helm anyway - so if the field is available in any one of them, that
instance can be used.

I'm also adding ignores for fields that are currently missing. We need
to add those missing fields and remove the ignores in subsequent PRs.

Signed-off-by: Daniel Grimm <dgrimm@redhat.com>
@dgn dgn force-pushed the add_validate_ztunnel_values_workflow branch from 722ffd0 to d65d2e3 Compare June 30, 2026 13:35
@istio-testing

istio-testing commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

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

Test name Commit Details Required Rerun command
tools-hack-check_sail-operator_main d65d2e3 link true /test tools-hack-check
unit-tests-arm64_sail-operator_main d65d2e3 link true /test unit-tests-arm64
integ-tests-arm64_sail-operator_main d65d2e3 link true /test integ-tests-arm64
Details

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.

Add Support for detecting missing ztunnelConfig fields in CRD

4 participants