From ddcdb0b945c201e39bb01f473682bae6707030b5 Mon Sep 17 00:00:00 2001 From: Clivern Date: Sun, 1 Aug 2021 13:24:29 +0200 Subject: [PATCH] update & bump --- Dockerfile | 2 +- README.md | 8 ++++---- core/controller/global_context.go | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dcba28..0a6382b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY ./ ./ -RUN go build -v -ldflags="-X 'main.version=v1.0.17'" helmet.go +RUN go build -v -ldflags="-X 'main.version=v1.0.18'" helmet.go FROM golang:1.16.6 diff --git a/README.md b/README.md index d2d9470..035ab27 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- +

Helmet

A Lightweight Cloud Native API Gateway.

@@ -10,10 +10,10 @@ - + - + @@ -25,7 +25,7 @@


- +

Helmet is Cloud Native API Gateway that control who accesses your API whether from customer or other internal services. It also collect metrics about service calls count, latency, success rate and much more! diff --git a/core/controller/global_context.go b/core/controller/global_context.go index cfbb778..cb8b538 100644 --- a/core/controller/global_context.go +++ b/core/controller/global_context.go @@ -62,7 +62,7 @@ func (c *GlobalContext) GetBalancer() (map[string]component.Balancer, error) { } } - if endpoint.Proxy.Upstreams.Balancing == "random" { + if endpoint.Proxy.Upstreams.Balancing == "random" || endpoint.Proxy.Upstreams.Balancing == "none" { result[endpoint.Name] = component.NewRandomBalancer([]*component.Target{}) for _, target := range endpoint.Proxy.Upstreams.Targets {