We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08c09f3 commit fdfe6fbCopy full SHA for fdfe6fb
7 files changed
boot.go
@@ -6,6 +6,13 @@ import (
6
"runtime"
7
8
"github.com/codegangsta/cli"
9
+ storagedriver "github.com/docker/distribution/registry/storage/driver"
10
+ _ "github.com/docker/distribution/registry/storage/driver/azure"
11
+ "github.com/docker/distribution/registry/storage/driver/factory"
12
+ _ "github.com/docker/distribution/registry/storage/driver/gcs"
13
+ _ "github.com/docker/distribution/registry/storage/driver/s3-aws"
14
+ _ "github.com/docker/distribution/registry/storage/driver/swift"
15
+ "github.com/kelseyhightower/envconfig"
16
"github.com/teamhephy/builder/pkg"
17
"github.com/teamhephy/builder/pkg/cleaner"
18
"github.com/teamhephy/builder/pkg/conf"
@@ -14,13 +21,6 @@ import (
21
"github.com/teamhephy/builder/pkg/sshd"
22
"github.com/teamhephy/builder/pkg/sys"
23
pkglog "github.com/teamhephy/pkg/log"
- storagedriver "github.com/docker/distribution/registry/storage/driver"
- _ "github.com/docker/distribution/registry/storage/driver/azure"
19
- "github.com/docker/distribution/registry/storage/driver/factory"
20
- _ "github.com/docker/distribution/registry/storage/driver/gcs"
- _ "github.com/docker/distribution/registry/storage/driver/s3-aws"
- _ "github.com/docker/distribution/registry/storage/driver/swift"
- "github.com/kelseyhightower/envconfig"
24
kcl "k8s.io/kubernetes/pkg/client/unversioned"
25
)
26
pkg/cleaner/cleaner.go
@@ -10,12 +10,12 @@ import (
"strings"
"time"
+ "github.com/docker/distribution/context"
"github.com/teamhephy/builder/pkg/gitreceive"
"github.com/teamhephy/builder/pkg/k8s"
"github.com/teamhephy/pkg/log"
- "github.com/docker/distribution/context"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/fields"
"k8s.io/kubernetes/pkg/labels"
pkg/gitreceive/build.go
@@ -11,6 +11,8 @@ import (
"path/filepath"
"github.com/teamhephy/builder/pkg/controller"
"github.com/teamhephy/builder/pkg/git"
@@ -19,8 +21,6 @@ import (
deisAPI "github.com/teamhephy/controller-sdk-go/api"
"github.com/teamhephy/controller-sdk-go/hooks"
"gopkg.in/yaml.v2"
client "k8s.io/kubernetes/pkg/client/unversioned"
pkg/gitreceive/build_test.go
@@ -11,14 +11,14 @@ import (
"testing"
"github.com/arschles/assert"
+ _ "github.com/docker/distribution/registry/storage/driver/inmemory"
builderconf "github.com/teamhephy/builder/pkg/conf"
"github.com/teamhephy/builder/pkg/storage"
"github.com/teamhephy/controller-sdk-go/api"
- _ "github.com/docker/distribution/registry/storage/driver/inmemory"
pkg/gitreceive/config_test.go
@@ -13,11 +13,11 @@ type checkCase struct {
func TestCheckDurations(t *testing.T) {
cases := map[checkCase]checkCase{
- checkCase{100, 300000, 500, 300000}: {100, 300000, 500, 300000},
- checkCase{0, 300000, 500, 300000}: {100, 300000, 500, 300000},
- checkCase{100, 300000, 0, 300000}: {100, 300000, 500, 300000},
- checkCase{300000, 300000, 500, 300000}: {100, 300000, 500, 300000},
- checkCase{100, 300000, 300000, 300000}: {100, 300000, 500, 300000},
+ {100, 300000, 500, 300000}: {100, 300000, 500, 300000},
+ {0, 300000, 500, 300000}: {100, 300000, 500, 300000},
+ {100, 300000, 0, 300000}: {100, 300000, 500, 300000},
+ {300000, 300000, 500, 300000}: {100, 300000, 500, 300000},
+ {100, 300000, 300000, 300000}: {100, 300000, 500, 300000},
}
var cnf Config
pkg/gitreceive/k8s_util.go
@@ -5,8 +5,8 @@ import (
5
"fmt"
- "github.com/teamhephy/builder/pkg/k8s"
"github.com/pborman/uuid"
+ "github.com/teamhephy/builder/pkg/k8s"
apierrors "k8s.io/kubernetes/pkg/api/errors"
pkg/gitreceive/run.go
@@ -6,10 +6,10 @@ import (
"os"
0 commit comments