Skip to content

Commit

Permalink
Merge pull request #111 from gofed/rename-path-prefixes
Browse files Browse the repository at this point in the history
Rename path prefix to sigs.k8s.io
  • Loading branch information
k8s-ci-robot authored Jan 28, 2020
2 parents 65ea251 + 0ef4983 commit 552d541
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 29 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ language: go
go:
- 1.12
script:
- mkdir -p ~/gopath/src/sigs.k8s.io/
- mv ~/gopath/src/github.com/kubernetes-sigs/cluster-capacity ~/gopath/src/sigs.k8s.io/.
- make build
- make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

build:
go build -o hypercc github.com/kubernetes-incubator/cluster-capacity/cmd/hypercc
go build -o hypercc sigs.k8s.io/cluster-capacity/cmd/hypercc
ln -sf hypercc cluster-capacity
ln -sf hypercc genpod
run:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cluster capacity analysis framework
[![Build Status](https://travis-ci.org/kubernetes-incubator/cluster-capacity.svg?branch=master)](https://travis-ci.org/kubernetes-incubator/cluster-capacity)
[![Build Status](https://travis-ci.org/kubernetes-sigs/cluster-capacity.svg?branch=master)](https://travis-ci.org/kubernetes-sigs/cluster-capacity)

Implementation of [cluster capacity analysis](https://github.com/kubernetes-incubator/cluster-capacity/blob/master/doc/cluster-capacity.md).
Implementation of [cluster capacity analysis](https://github.com/kubernetes-sigs/cluster-capacity/blob/master/doc/cluster-capacity.md).

## Intro

Expand All @@ -22,8 +22,8 @@ in terms of a number of instances of a pod with given requirements that can be s
Build the framework:

```sh
$ cd $GOPATH/src/github.com/kubernetes-incubator
$ git clone https://github.com/kubernetes-incubator/cluster-capacity
$ cd $GOPATH/src/sigs.k8s.io
$ git clone https://github.com/kubernetes-sigs/cluster-capacity
$ cd cluster-capacity
$ make build
```
Expand Down
6 changes: 3 additions & 3 deletions cmd/cluster-capacity/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import (
schedoptions "k8s.io/kubernetes/cmd/kube-scheduler/app/options"
_ "k8s.io/kubernetes/pkg/scheduler/algorithmprovider"

"github.com/kubernetes-incubator/cluster-capacity/cmd/cluster-capacity/app/options"
"github.com/kubernetes-incubator/cluster-capacity/pkg/framework"
"github.com/kubernetes-incubator/cluster-capacity/pkg/utils"
"sigs.k8s.io/cluster-capacity/cmd/cluster-capacity/app/options"
"sigs.k8s.io/cluster-capacity/pkg/framework"
"sigs.k8s.io/cluster-capacity/pkg/utils"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cmd/cluster-capacity/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"os"

"github.com/kubernetes-incubator/cluster-capacity/cmd/cluster-capacity/app"
"sigs.k8s.io/cluster-capacity/cmd/cluster-capacity/app"
)

func main() {
Expand Down
6 changes: 3 additions & 3 deletions cmd/genpod/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ import (
"k8s.io/client-go/tools/clientcmd"
_ "k8s.io/kubernetes/pkg/scheduler/algorithmprovider"

"github.com/kubernetes-incubator/cluster-capacity/cmd/genpod/app/options"
nspod "github.com/kubernetes-incubator/cluster-capacity/pkg/client"
"github.com/kubernetes-incubator/cluster-capacity/pkg/utils"
"sigs.k8s.io/cluster-capacity/cmd/genpod/app/options"
nspod "sigs.k8s.io/cluster-capacity/pkg/client"
"sigs.k8s.io/cluster-capacity/pkg/utils"
)

func NewGenPodCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/genpod/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"fmt"
"os"

"github.com/kubernetes-incubator/cluster-capacity/cmd/genpod/app"
"sigs.k8s.io/cluster-capacity/cmd/genpod/app"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/hypercc/hypercc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package main
import (
"github.com/spf13/cobra"

capp "github.com/kubernetes-incubator/cluster-capacity/cmd/cluster-capacity/app"
gapp "github.com/kubernetes-incubator/cluster-capacity/cmd/genpod/app"
capp "sigs.k8s.io/cluster-capacity/cmd/cluster-capacity/app"
gapp "sigs.k8s.io/cluster-capacity/cmd/genpod/app"
)

// HyperCC represents a single binary that can run any cluster capacity commands.
Expand Down
4 changes: 2 additions & 2 deletions cmd/hypercc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (

"github.com/spf13/cobra"

capp "github.com/kubernetes-incubator/cluster-capacity/cmd/cluster-capacity/app"
gapp "github.com/kubernetes-incubator/cluster-capacity/cmd/genpod/app"
capp "sigs.k8s.io/cluster-capacity/cmd/cluster-capacity/app"
gapp "sigs.k8s.io/cluster-capacity/cmd/genpod/app"
)

func main() {
Expand Down
13 changes: 6 additions & 7 deletions doc/RUN_IN_KUBERNETES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- Have a running kubernetes environment - You can use e.g ``$ hack/local-up-cluster.sh`` in cloned local [kubernetes repository](https://github.com/kubernetes/kubernetes)

- If your kubernetes cluster doesn't have limit ranges and requests specified you can do it by specifying limitrange object. If you just want to try cluster-capacity, you can use
[Example limit range file](https://github.com/kubernetes-incubator/cluster-capacity/blob/master/doc/example-limit-range.yaml)
- If your kubernetes cluster doesn't have limit ranges and requests specified you can do it by specifying limitrange object. If you just want to try cluster-capacity, you can use
[Example limit range file](https://github.com/kubernetes-sigs/cluster-capacity/blob/master/doc/example-limit-range.yaml)

- Make sure the kubernetes default service has the correct port and the traffic from the VIP is forwarded to running Apiserver (e.g. ``kubernetes`` service on VIP ``10.0.0.1`` and port ``443`` with Apiserver running on ``127.0.0.1:6443``).
```
Expand All @@ -12,7 +12,7 @@ $ kubectl patch svc kubernetes -p '[{"op": "replace", "path": "/spec/ports/0/por
# update iptables to forward the kubernetes service to the Apiserver
$ sudo iptables -t nat -A PREROUTING -d 10.0.0.1 -p tcp --dport 6443 -j DNAT --to-destination 127.0.0.1
```

- Create pod object:
```sh
$ cat cluster-capacity-pod.yaml
Expand Down Expand Up @@ -47,16 +47,15 @@ $ kubectl expose pod cluster-capacity --port=8081
```

- Get endpoint URL

```sh
$ kubectl get endpoints cluster-capacity
```

- Now you should be able to see cluster status:
- Now you should be able to see cluster status:

```sh
curl http://<endpoint>/capacity/status
```

- For more information of how to access acquired data any see [API operations](https://github.com/kubernetes-incubator/cluster-capacity/blob/master/doc/api-operations.md)

- For more information of how to access acquired data any see [API operations](https://github.com/kubernetes-sigs/cluster-capacity/blob/master/doc/api-operations.md)
2 changes: 1 addition & 1 deletion doc/html/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ <h2>Welcome to cluster capacity!</h2>
<p>We are couting cluster-capacity for you and generating new report in every {{.Period}}
seconds. We always remember last {{.CacheSize}} records. You can see the results or update
the scheduled pod using api-reference specified in /doc sirectory or on the project page:
https://github.com/kubernetes-incubator/cluster-capacity /p>
https://github.com/kubernetes-sigs/cluster-capacity /p>
</body>
</html>
4 changes: 2 additions & 2 deletions pkg/framework/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ import (

kuberecord "k8s.io/client-go/tools/record"

"github.com/kubernetes-incubator/cluster-capacity/pkg/framework/record"
"github.com/kubernetes-incubator/cluster-capacity/pkg/framework/strategy"
uuid "github.com/satori/go.uuid"
"sigs.k8s.io/cluster-capacity/pkg/framework/record"
"sigs.k8s.io/cluster-capacity/pkg/framework/strategy"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@

#!/bin/sh

tests=$(for file in $(find . -iname "*_test.go" | grep -v "./vendor" | sed "s/\.//"); do test=$(dirname $file | sed "s/\.//"); echo "github.com/kubernetes-incubator/cluster-capacity$test"; done)
tests=$(for file in $(find . -iname "*_test.go" | grep -v "./vendor" | sed "s/\.//"); do test=$(dirname $file | sed "s/\.//"); echo "sigs.k8s.io/cluster-capacity$test"; done)
go test $tests

0 comments on commit 552d541

Please sign in to comment.