Skip to content

Commit 08620de

Browse files
authored
Add dispatcher & memoryStore & latencyAwarePlugin (#440)
* Add dispatcher & memoryStore Signed-off-by: kerthcet <kerthcet@gmail.com> * Rename metrics-aggregator to router Signed-off-by: kerthcet <kerthcet@gmail.com> --------- Signed-off-by: kerthcet <kerthcet@gmail.com>
1 parent 5e00ed3 commit 08620de

52 files changed

Lines changed: 848 additions & 242 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ gotestsum: ## Download gotestsum locally if necessary.
123123
test: manifests fmt vet envtest gotestsum ## Run tests.
124124
$(GOTESTSUM) --junitfile $(ARTIFACTS)/junit.xml -- ./api/... ./pkg/... -coverprofile $(ARTIFACTS)/cover.out
125125

126-
# Test the metrics-aggregator component
127-
cd components/metrics-aggregator && make test
126+
# Test the components.
127+
cd components/router && make test
128128

129129
.PHONY: test-integration
130130
test-integration: manifests fmt vet envtest ginkgo ## Run integration tests.

components/metrics-aggregator/pkg/store/redis.go

Lines changed: 0 additions & 93 deletions
This file was deleted.

components/metrics-aggregator/pkg/store/store.go

Lines changed: 0 additions & 33 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@ help: ## Display this help.
6161

6262
.PHONY: manifests
6363
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
64-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
64+
$(CONTROLLER_GEN) \
65+
rbac:roleName=manager-role output:rbac:artifacts:config=config/rbac \
66+
crd:generateEmbeddedObjectMeta=true output:crd:artifacts:config=config/crd/bases \
67+
webhook output:webhook:artifacts:config=config/webhook \
68+
paths="./..."
6569

6670
.PHONY: artifacts
6771
artifacts: kustomize
@@ -197,7 +201,7 @@ ENVTEST ?= $(LOCALBIN)/setup-envtest
197201

198202
## Tool Versions
199203
KUSTOMIZE_VERSION ?= v5.2.1
200-
CONTROLLER_TOOLS_VERSION ?= v0.13.0
204+
CONTROLLER_TOOLS_VERSION ?= v0.16.1
201205

202206
.PHONY: kustomize
203207
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. If wrong version is installed, it will be removed before downloading.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
domain: inftyai.com
66
layout:
77
- go.kubebuilder.io/v4
8-
projectName: metrics-aggregator
9-
repo: github.com/inftyai/metrics-aggregator
8+
projectName: router
9+
repo: github.com/inftyai/router
1010
version: "3"
File renamed without changes.

0 commit comments

Comments
 (0)