diff --git a/Makefile b/Makefile index e5e39f6f0..aeb35e75f 100644 --- a/Makefile +++ b/Makefile @@ -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. diff --git a/controllers/rate_limiting_wasmplugin_controller.go b/controllers/rate_limiting_wasmplugin_controller.go index 818399167..ee4e8ed8e 100644 --- a/controllers/rate_limiting_wasmplugin_controller.go +++ b/controllers/rate_limiting_wasmplugin_controller.go @@ -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{ diff --git a/pkg/rlptools/wasm/server_utils.go b/pkg/rlptools/wasm/server_utils.go index 4dc5ce160..b6fc0799b 100644 --- a/pkg/rlptools/wasm/server_utils.go +++ b/pkg/rlptools/wasm/server_utils.go @@ -25,3 +25,7 @@ func ServerServiceNamespace() string { func SHA256() string { return WasmShimSha256 } + +func ServerEndpoint() string { + return "/kuadrant-ratelimit-wasm" +}