Skip to content

api: add cel validation of GrpcStatus - #8803

Merged
jukie merged 5 commits into
envoyproxy:mainfrom
kkk777-7:improve-grpc-status-type
Apr 23, 2026
Merged

api: add cel validation of GrpcStatus#8803
jukie merged 5 commits into
envoyproxy:mainfrom
kkk777-7:improve-grpc-status-type

Conversation

@kkk777-7

@kkk777-7 kkk777-7 commented Apr 21, 2026

Copy link
Copy Markdown
Member

What this PR does / why we need it:
Improve: add validation of valid values.
Related: #8800

Which issue(s) this PR fixes:

Fixes #

Release Notes: No

@kkk777-7
kkk777-7 requested a review from a team as a code owner April 21, 2026 07:06
@netlify

netlify Bot commented Apr 21, 2026

Copy link
Copy Markdown

Deploy Preview for cerulean-figolla-1f9435 ready!

Name Link
🔨 Latest commit 36f3ac6
🔍 Latest deploy log https://app.netlify.com/projects/cerulean-figolla-1f9435/deploys/69e9b66d7e87640008b5e02c
😎 Deploy Preview https://deploy-preview-8803--cerulean-figolla-1f9435.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

// +optional
GrpcStatus *int32 `json:"grpcStatus,omitempty"`
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=16

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f661cda5a4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/v1alpha1/fault_injection.go Outdated
@codecov

codecov Bot commented Apr 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.62%. Comparing base (7b14b5b) to head (36f3ac6).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8803      +/-   ##
==========================================
- Coverage   73.62%   73.62%   -0.01%     
==========================================
  Files         246      246              
  Lines       49076    49076              
==========================================
- Hits        36131    36130       -1     
- Misses      10923    10925       +2     
+ Partials     2022     2021       -1     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
@kkk777-7
kkk777-7 force-pushed the improve-grpc-status-type branch from f661cda to 3b79171 Compare April 21, 2026 07:49
Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
@kkk777-7 kkk777-7 changed the title update: grpcstatus type api: add cel validation of GrpcStatus Apr 21, 2026
@kkk777-7

Copy link
Copy Markdown
Member Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

//
// +optional
// +kubebuilder:validation:Minimum=0
// +kubebuilder:validation:Maximum=16

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.

is this inclusive of 16 ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, I've add cel test.

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
@kkk777-7

Copy link
Copy Markdown
Member Author

/retest

@kkk777-7

Copy link
Copy Markdown
Member Author

/retest

@jukie
jukie merged commit b47bc2b into envoyproxy:main Apr 23, 2026
57 of 62 checks passed
skos-ninja pushed a commit to skos-ninja/envoy-gateway that referenced this pull request May 1, 2026
* add cel validation of grpcStatus

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* fix: gen-check

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

* add: cel test

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>

---------

Signed-off-by: kkk777-7 <kota.kimura0725@gmail.com>
Co-authored-by: Isaac Wilson <isaac.wilson514@gmail.com>
Signed-off-by: Jake Oliver <jake@truelayer.com>
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.

4 participants