diff --git a/.travis.yml b/.travis.yml index 5fc139e3fa..6a10efb9d8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/Makefile b/Makefile index 0d7f0a0f27..e1af6cccd0 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/README.md b/README.md index 09eddb2a9f..838816e9c8 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ``` diff --git a/cmd/cluster-capacity/app/server.go b/cmd/cluster-capacity/app/server.go index 0ad112e98b..743c105aa8 100644 --- a/cmd/cluster-capacity/app/server.go +++ b/cmd/cluster-capacity/app/server.go @@ -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 ( diff --git a/cmd/cluster-capacity/main.go b/cmd/cluster-capacity/main.go index d1df95a7d7..ebba3dc58b 100644 --- a/cmd/cluster-capacity/main.go +++ b/cmd/cluster-capacity/main.go @@ -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() { diff --git a/cmd/genpod/app/server.go b/cmd/genpod/app/server.go index 2092aa5070..1dc0a8ab8a 100644 --- a/cmd/genpod/app/server.go +++ b/cmd/genpod/app/server.go @@ -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 { diff --git a/cmd/genpod/main.go b/cmd/genpod/main.go index eb9c3cd225..dca716b19d 100644 --- a/cmd/genpod/main.go +++ b/cmd/genpod/main.go @@ -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() { diff --git a/cmd/hypercc/hypercc.go b/cmd/hypercc/hypercc.go index 6e72b1e19a..d740edf2f8 100644 --- a/cmd/hypercc/hypercc.go +++ b/cmd/hypercc/hypercc.go @@ -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. diff --git a/cmd/hypercc/main.go b/cmd/hypercc/main.go index ecb6ebd0ca..f133d105f9 100644 --- a/cmd/hypercc/main.go +++ b/cmd/hypercc/main.go @@ -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() { diff --git a/doc/RUN_IN_KUBERNETES.md b/doc/RUN_IN_KUBERNETES.md index 2bf79415f8..831a87df39 100644 --- a/doc/RUN_IN_KUBERNETES.md +++ b/doc/RUN_IN_KUBERNETES.md @@ -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``). ``` @@ -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 @@ -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:///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) diff --git a/doc/html/home.html b/doc/html/home.html index d16a374cf1..250c0e9138 100644 --- a/doc/html/home.html +++ b/doc/html/home.html @@ -7,6 +7,6 @@

Welcome to cluster capacity!

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> diff --git a/pkg/framework/simulator.go b/pkg/framework/simulator.go index 00506d180a..c0a96ebc43 100644 --- a/pkg/framework/simulator.go +++ b/pkg/framework/simulator.go @@ -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 ( diff --git a/test.sh b/test.sh index 23bfe1c02f..071d8f581c 100755 --- a/test.sh +++ b/test.sh @@ -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 -