Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrasimir Angelov <kangelov@gitlab.com>2020-01-28 19:55:06 +0300
committerAlessio Caiazza <acaiazza@gitlab.com>2020-01-28 19:55:06 +0300
commit12a986b1eb48a54b965861b2d1571e1cbd7c9fec (patch)
tree70fcda9c68bea39e2a2d04b71e59ee4422bc3733 /main.go
parentf08c7a13b8115b99393ce1e58f79d06ceae9b8a5 (diff)
Implement support for incremental rollout
This adds support for specifying rollout strategy via the following attributes: * percentage - integer value that specifies how many % of requests should be enabled * stickiness - if not specified guarantees stickiness for the provided actor. If set to "random" no stickiness is guaranteed.
Diffstat (limited to 'main.go')
-rw-r--r--main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8459314d..ea96a096 100644
--- a/main.go
+++ b/main.go
@@ -5,6 +5,7 @@ import (
"errors"
"fmt"
"io"
+ "math/rand"
"net/url"
"os"
"strings"
@@ -394,6 +395,8 @@ func printVersion(showVersion bool, version string) {
func main() {
log.SetOutput(os.Stderr)
+ rand.Seed(time.Now().UnixNano())
+
daemonMain()
appMain()
}