Skip to content

Commit

Permalink
wasm-service: small enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
eguzki committed Jun 4, 2024
1 parent 30d5197 commit e796994
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,8 @@ $(WASM_SHIM):
) \
&& echo "Downloading kuadrant-ratelimit-wasm@$(WASM_SHIM_VERSION) from https://api.github.com/repos/Kuadrant/wasm-shim/releases/assets/$${ASSET_ID}" \
&& curl -sSLo $@ -H "Accept: application/octet-stream" https://api.github.com/repos/Kuadrant/wasm-shim/releases/assets/$${ASSET_ID}; \
sha256sum $@; \
}
sha256sum $@

.PHONY: wasm-shim
wasm-shim: $(WASM_SHIM) ## Download opm locally if necessary.
Expand Down
2 changes: 1 addition & 1 deletion controllers/rate_limiting_wasmplugin_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (r *RateLimitingWASMPluginReconciler) desiredRateLimitingWASMPlugin(ctx con
Scheme: "http",
// Warning: .cluster.local may not be true in all clusters
Host: fmt.Sprintf("%s.%s.svc.cluster.local:%d", wasm.ServerServiceName(), wasm.ServerServiceNamespace(), wasm.ServerServicePort()),
Path: "/kuadrant-ratelimit-wasm",
Path: wasm.ServerEndpoint(),
}

wasmPlugin := &istioclientgoextensionv1alpha1.WasmPlugin{
Expand Down
4 changes: 4 additions & 0 deletions pkg/rlptools/wasm/server_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ func ServerServiceNamespace() string {
func SHA256() string {
return WasmShimSha256
}

func ServerEndpoint() string {
return "/kuadrant-ratelimit-wasm"
}

0 comments on commit e796994

Please sign in to comment.