Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add flush interval
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Jul 1, 2022
1 parent 1b11147 commit c0901fe
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions pkg/server/registry/builders/port.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"net/http"
"net/http/httputil"
"time"

apiv1 "github.com/acorn-io/acorn/pkg/apis/api.acorn.io/v1"
"github.com/acorn-io/acorn/pkg/build/buildkit"
Expand Down Expand Up @@ -46,8 +47,9 @@ func NewBuildkitPort(client client.WithWatch, builders *Storage, cfg *clientgo.C
client: client,
builders: builders,
proxy: httputil.ReverseProxy{
Transport: transport,
Director: func(request *http.Request) {},
FlushInterval: 200 * time.Millisecond,
Transport: transport,
Director: func(request *http.Request) {},
},
RESTClient: k8s.CoreV1().RESTClient(),
}, nil
Expand Down
6 changes: 4 additions & 2 deletions pkg/server/registry/builders/registryport.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"net/http"
"net/http/httputil"
"time"

apiv1 "github.com/acorn-io/acorn/pkg/apis/api.acorn.io/v1"
"github.com/acorn-io/acorn/pkg/build/buildkit"
Expand Down Expand Up @@ -46,8 +47,9 @@ func NewRegistryPort(client client.WithWatch, builders *Storage, cfg *clientgo.C
client: client,
builders: builders,
proxy: httputil.ReverseProxy{
Transport: transport,
Director: func(request *http.Request) {},
FlushInterval: 200 * time.Millisecond,
Transport: transport,
Director: func(request *http.Request) {},
},
RESTClient: k8s.CoreV1().RESTClient(),
}, nil
Expand Down
6 changes: 4 additions & 2 deletions pkg/server/registry/containers/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"net/http"
"net/http/httputil"
"time"

apiv1 "github.com/acorn-io/acorn/pkg/apis/api.acorn.io/v1"
"github.com/acorn-io/acorn/pkg/watcher"
Expand Down Expand Up @@ -57,8 +58,9 @@ func NewContainerExec(client client.WithWatch, containers *Storage, cfg *clientg
client: client,
containers: containers,
proxy: httputil.ReverseProxy{
Transport: transport,
Director: func(request *http.Request) {},
FlushInterval: 200 * time.Millisecond,
Transport: transport,
Director: func(request *http.Request) {},
},
RESTClient: k8s.CoreV1().RESTClient(),
}, nil
Expand Down
2 changes: 1 addition & 1 deletion pkg/system/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var (
RegistryName = "registry"
RegistryImage = "registry:2.7.1"
RegistryPort = 5000
BuildkitImage = "moby/buildkit:master"
BuildkitImage = "moby/buildkit:v0.10.3"
BuildKitName = "buildkitd"
ControllerName = "acorn-controller"
APIServerName = "acorn-api"
Expand Down

0 comments on commit c0901fe

Please sign in to comment.