Skip to content

Commit

Permalink
Bump config to take advantage of canonical setup
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Jun 6, 2018
1 parent f1561d0 commit eb11aa8
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 8 deletions.
8 changes: 5 additions & 3 deletions projects/kubernetes/autoscaler.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
"tag": "golang-1.9"
},

"binary_build_commands": "mkdir -p $GOPATH/src/k8s.io; ln -s $(pwd) $GOPATH/src/k8s.io/autoscaler; make build",
"test_binary_build_commands": "mkdir -p $GOPATH/src/k8s.io; ln -s $(pwd) $GOPATH/src/k8s.io/autoscaler; OS_GOFLAGS='-race' make build",
"canonical_go_repository": "k8s.io/autoscaler",

"binary_build_commands": "make build",
"test_binary_build_commands": "OS_GOFLAGS='-race' make build",
"rpm_build_commands": "make build-rpms",

"images": [
Expand All @@ -37,7 +39,7 @@
{
"as": "unit",
"from": "test-bin",
"commands": "cd $GOPATH/src/k8s.io/autoscaler/cluster-autoscaler; go test ./..."
"commands": "go test ./..."
}
],

Expand Down
4 changes: 3 additions & 1 deletion projects/kubernetes/cluster-capacity.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
"tag": "golang-1.9"
},

"canonical_go_repository": "github.com/kubernetes-incubator/cluster-capacity",

"binary_build_commands": "make build",
"test_binary_build_commands": "mkdir -p $GOPATH/src/github.com/kubernetes-incubator; ln -s $(pwd) $GOPATH/src/github.com/kubernetes-incubator/cluster-capacity; OS_GOFLAGS='-race' make build",
"test_binary_build_commands": "OS_GOFLAGS='-race' make build",
"rpm_build_commands": "make build-rpms",

"images": [
Expand Down
8 changes: 5 additions & 3 deletions projects/kubernetes/descheduler.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@
"tag": "golang-1.9"
},

"binary_build_commands": "mkdir -p $GOPATH/src/github.com/kubernetes-incubator; ln -s $(pwd) $GOPATH/src/github.com/kubernetes-incubator/descheduler; make build",
"test_binary_build_commands": "mkdir -p $GOPATH/src/github.com/kubernetes-incubator; ln -s $(pwd) $GOPATH/src/github.com/kubernetes-incubator/descheduler; OS_GOFLAGS='-race' make build",
"canonical_go_repository": "github.com/kubernetes-incubator/descheduler",

"binary_build_commands": "make build",
"test_binary_build_commands": "OS_GOFLAGS='-race' make build",

"images": [
{
Expand All @@ -36,7 +38,7 @@
{
"as": "unit",
"from": "test-bin",
"commands": "cd $GOPATH/src/github.com/kubernetes-incubator/descheduler; go test ./pkg/..."
"commands": "go test ./pkg/..."
}
],

Expand Down
5 changes: 4 additions & 1 deletion projects/kubernetes/metrics-server.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,13 @@
"tag": "golang-1.9"
},

"canonical_go_repository": "github.com/kubernetes-incubator/metrics-server",

"binary_build_commands": "make build",
"test_binary_build_commands": "mkdir -p $GOPATH/src/github.com/kubernetes-incubator; ln -s $(pwd) $GOPATH/src/github.com/kubernetes-incubator/metrics-server; OS_GOFLAGS='-race' make build",
"test_binary_build_commands": "OS_GOFLAGS='-race' make build",
"rpm_build_commands": "make build-rpms",


"images": [
{
"from": "base",
Expand Down
62 changes: 62 additions & 0 deletions projects/openshift-installer/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"tag_specification": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "origin-v3.10",
"tag": "",
"tag_overrides": {}
},
"base_images": {
"base": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "origin-v3.10",
"tag": "base"
}
},
"test_base_image": {
"cluster": "https://api.ci.openshift.org",
"namespace": "openshift",
"name": "release",
"tag": "golang-1.9"
},

"canonical_go_repository": "github.com/coreos/tectonic-installer",

"binary_build_commands": "go build ./installer/cmd/tectonic",

"images": [
{
"from": "base",
"to": "installer",
"dockerfile_path": "images/tectonic-installer/Dockerfile.ci",
"inputs": {
"bin": {"paths": [{"source_path": "/go/src/github.com/coreos/tectonic-installer/tectonic", "destination_dir": "."}]},
"root": {"as": ["build"]}
}
}
],

"tests": [
{
"as": "unit",
"from": "src",
"commands": "go test ./installer/pkg/..."
}
],

"resources": {
"*": {
"requests": { "cpu": "100m", "memory": "200Mi" },
"limits": { "cpu": "2", "memory": "4Gi" }
},
"bin": {
"requests": { "cpu": "3", "memory": "7Gi" },
"limits": { "cpu": "7", "memory": "9Gi" }
},
"unit": {
"requests": { "cpu": "3", "memory": "5Gi" },
"limits": { "cpu": "7", "memory": "9Gi" }
}
}
}

0 comments on commit eb11aa8

Please sign in to comment.