kustomize.Build re-parses the built-in OpenAPI schema on every call
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- go, kubernetes
- 領域
- devops, performance
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 63
- フォーク
- 162
- 平均マージ
- 9時間 54分
- マージ済み PR(30日)
- 29
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fluxcd/pkg のほかの issue
-
ssa: wait errors drop the kstatus message, so health check failures don't say why対応中かも @schdief が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
ssa/jsondiff: honor ignored fields before dry-run validation対応中かも @lubronzhan が 31 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 30/100
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
Improve `make release` to support major version bumps対応中かも @Iam-Karan-Suresh が 175 日前に担当しました。 オープンarea/ci
fluxcd/pkg#1172 · コメント 3 件 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Bug: `runtime/client.(*Impersonator).CanImpersonate` does not take kubeconfig into account再び着手できるかも @yuminn-k が 16 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 49/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
Pin and verify Security Insights schema in lintinsights target対応中かも @imshubham22apr-gif が 5 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
gemaraproj/gemara#618 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
a2aproject/a2a-go#597 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 4 日以内に返信
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace characters対応中かも @patelshivani2283-lab が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area/networking kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
siderolabs/talos#14972 ·
メンテナーはふだん 1 日以内に返信