Skip to content

nas: pass along context to rate limiter#1583

Merged
k8s-ci-robot merged 7 commits into
kubernetes-sigs:masterfrom
huww98:nas-ctx
Mar 16, 2026
Merged

nas: pass along context to rate limiter#1583
k8s-ci-robot merged 7 commits into
kubernetes-sigs:masterfrom
huww98:nas-ctx

Conversation

@huww98

@huww98 huww98 commented Dec 10, 2025

Copy link
Copy Markdown
Contributor

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

NONE

Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@k8s-ci-robot k8s-ci-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Dec 10, 2025
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Dec 10, 2025
@huww98 huww98 force-pushed the nas-ctx branch 2 times, most recently from c28d6c0 to 19a084e Compare December 11, 2025 06:23
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 11, 2025
huww98 added 5 commits March 13, 2026 18:24
Allow us to add more context to the "GRPC call start" related log entry.
Extract request ID, Error code from response or error for logging.

Transform the error for k8s event.
- Do not include anything that changes at each request (e.g. RequestID) in error message, for better event aggregation. RequestID is still present in the log.
- Support using errors.Is() for checking error code programmatically.
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 13, 2026
huww98 added 2 commits March 13, 2026 18:39
Sometime explicit is better, and sometimes we add field name for consistency.
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Mar 13, 2026
@iltyty

iltyty commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 16, 2026
@iltyty

iltyty commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

/approve

Comment thread pkg/cloud/utils.go
Header: http.Header{},
Body: io.NopCloser(bytes.NewReader(jsonBytes)),
Header: http.Header{
"X-Acs-Request-Id": []string{"testing-openapi-request-id"},

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.

Purpose of this header?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Used in unit-test to verify that we can capture the request-ID to the log output.

@mowangdk

Copy link
Copy Markdown
Contributor

/approve

We currently lack sufficient test coverage for the csi-agent scenario. We need to implement additional test cases to ensure stability when updating the csi-agent image.

@k8s-ci-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: huww98, iltyty, mowangdk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 16, 2026
@mowangdk

Copy link
Copy Markdown
Contributor

cc @iltyty

@k8s-ci-robot k8s-ci-robot merged commit c8f2d73 into kubernetes-sigs:master Mar 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants