kustomize.Build re-parses the built-in OpenAPI schema on every call
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tái cấu trúc
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- go, kubernetes
- Lĩnh vực
- devops, performance
Hướng nghiên cứu
Start in the kustomize.Build path, where resetOpenAPIWithBuiltins() runs before each build and openapi.ResetOpenAPI() after it, under kustomizeBuildMutex. Read how kyaml's global schema is cleared and re-parsed, and the fix from #1237 that keeps custom openapi: schemas from leaking between builds. Done means the built-in schema is parsed once per process and restored per build, custom schemas still reset, and the output is unchanged. Confirm this with the maintainers before starting, since the design is open.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
kustomize.Build calls resetOpenAPIWithBuiltins() before each build and openapi.ResetOpenAPI() after it.
Each reset clears kyaml's global schema, so the next openapi.Schema() re-parses the whole embedded Kubernetes OpenAPI bundle. This happens on every build, under kustomizeBuildMutex.
In a process that runs many builds, this parse dominates: about 14 MiB allocated and ~28 ms of locked time per build. Parsing the bundle once per process halved total wall time with identical output.
The reset is needed so a custom openapi: schema cannot leak into later builds (#1237). Could the parsed built-in schema be kept and restored instead of re-parsed, while still resetting custom schemas?
Happy to send a PR.
- Ngôn ngữ chính
- Go
- Star
- 63
- Fork
- 162
- Merge trung bình
- 9 giờ 54 phút
- Pull request đã merge (30 ngày)
- 29
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluxcd/pkg
-
ssa: wait errors drop the kstatus message, so health check failures don't say whyCó thể đã có người làm @schdief đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ssa/jsondiff: honor ignored fields before dry-run validationCó thể đã có người làm @lubronzhan đã nhận 31 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Improve `make release` to support major version bumpsCó thể đã có người làm @Iam-Karan-Suresh đã nhận 175 ngày trước. Đang mởarea/ci
fluxcd/pkg#1172 · 3 bình luận · 1 reaction · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bug: `runtime/client.(*Impersonator).CanImpersonate` does not take kubeconfig into accountCó thể làm lại được @yuminn-k đã nhận 16 ngày trước và không có pull request nào đang mở. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 49/100
fluxcd/pkg#959 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
github/github-mcp-server#3865 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
kind/features
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
TencentBlueKing/bk-nodemgr#4017 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
equinor/radix-operator#2066 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
microsoft/terraform-provider-msgraph#188 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 2 ngày