Repository navigation
api: support HTTP and Image sources for EnvoyProxy wasmModules, deprecate inline Wasm code - #10167
zhaohuabing wants to merge 4 commits into
Conversation
✅ Deploy Preview for cerulean-figolla-1f9435 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
957e8e7 to
c8c8cf5
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #10167 +/- ##
========================================
Coverage 82.20% 82.21%
========================================
Files 277 277
Lines 44014 44164 +150
========================================
+ Hits 36183 36308 +125
- Misses 7830 7855 +25
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
c8c8cf5 to
91b4f17
Compare
46e9306 to
21e340d
Compare
…cate inline Wasm code EnvoyProxy.spec.wasmModules only accepted Local sources, so HTTP and OCI modules still had to be defined inline in each EnvoyExtensionPolicy. Add HTTP and Image source types to the registry, reusing the existing HTTPWasmCodeSource and ImageWasmCodeSource shapes plus pullPolicy, with CEL rules that keep exactly one source set per type. Registered HTTP and Image modules go through the existing Wasm cache, sharing one code path with inline wasm[].code. Each module is resolved against the EnvoyProxy level that declares it, not the merged EnvoyProxy: its pull secret and CA certificate must be in that EnvoyProxy's namespace, and its cache entry follows that EnvoyProxy's resource version for the Always pull policy. Modules in the EnvoyGateway default spec resolve refs in the controller namespace. The Kubernetes provider fetches those Secrets, ConfigMaps and ClusterTrustBundles and indexes them so a change triggers a reconcile. Deprecate EnvoyExtensionPolicy.wasm[].code in favor of registering the module centrally and referencing it by wasm[].name. Policies that still use it get a DeprecatedField warning. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com> Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
21e340d to
68a87e8
Compare
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Gernal LGTM from my side, should we add warning message in status to help the migration? |
Resolve conflict in internal/provider/kubernetes/controller.go: main moved the per-GatewayClass reconcile loop body into reconcileGatewayClass, so re-apply the default EnvoyProxy spec Wasm module ref processing there. Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
|
/retest |
Signed-off-by: Huabing (Robin) Zhao <huabing@tetrate.io>
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
Follow-up to #9530.
EnvoyProxywasmModulescan now register HTTP and OCI Image modules as well as Local ones, so every Wasm source can be managed centrally and referenced from anEnvoyExtensionPolicyby name.Inline
wasm[].codeonEnvoyExtensionPolicyis now deprecated in favor of the registry.