Skip to content

Commit

Permalink
*: Replace the repo name (#386)
Browse files Browse the repository at this point in the history
We have migrated the repo and we should replace the repo name with the new one.

* Related to #350
Signed-off-by: Ce Gao [email protected]
  • Loading branch information
gaocegege authored and jlewi committed Feb 12, 2018
1 parent 3607674 commit b0561dd
Show file tree
Hide file tree
Showing 54 changed files with 134 additions and 135 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ go:
- 1.8
- 1.9

go_import_path: github.com/tensorflow/k8s
go_import_path: github.com/kubeflow/tf-operator

install:
# get coveralls.io support
Expand All @@ -19,7 +19,7 @@ install:
- gometalinter --install

script:
- go build -o tf-operator github.com/tensorflow/k8s/cmd/tf_operator
- go build -o tf-operator github.com/kubeflow/tf-operator/cmd/tf_operator
- gometalinter --config=linter_config.json ./pkg/...
# We customize the build step because by default
# Travis runs go test -v ./... which will include the vendor
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# K8s Custom Resource and Operator For TensorFlow jobs

[![Build Status](https://travis-ci.org/tensorflow/k8s.svg?branch=master)](https://travis-ci.org/tensorflow/k8s)
[![Coverage Status](https://coveralls.io/repos/github/tensorflow/k8s/badge.svg?branch=master)](https://coveralls.io/github/tensorflow/k8s?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/tensorflow/k8s)](https://goreportcard.com/report/github.com/tensorflow/k8s)
[![Build Status](https://travis-ci.org/kubeflow/tf-operator.svg?branch=master)](https://travis-ci.org/kubeflow/tf-operator)
[![Coverage Status](https://coveralls.io/repos/github/kubeflow/tf-operator/badge.svg?branch=master)](https://coveralls.io/github/kubeflow/tf-operator?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/kubeflow/tf-operator)](https://goreportcard.com/report/github.com/kubeflow/tf-operator)
[Prow Test Dashboard](https://k8s-testgrid.appspot.com/sig-big-data)
[Prow Jobs](https://prow.k8s.io/?repo=tensorflow%2Fk8s)

Expand Down Expand Up @@ -97,11 +97,11 @@ TFJob requires Kubernetes >= 1.8
PASSED: tf-job-tfjob-test-pqxkwk
```
### Installing `tensorflow/k8s`'s Dashboard
### Installing `kubeflow/tf-operator`'s Dashboard
> **Caution: the dashboard is in very early development stage!**
`tensorflow/k8s` also includes a dashboard allowing you to monitor and create `TFJobs` through a web UI.
`kubeflow/tf-operator` also includes a dashboard allowing you to monitor and create `TFJobs` through a web UI.
To deploy the dashboard, set `dashboard.install` to `true`.
Note that by default the dashboard will only be accessible from within the cluster or by proxying, as the default `ServiceType` is `ClusterIP`.
If you wish to expose the dashboard through an external IP, set `dashboard.serviceType` to `LoadBalancer`.
Expand Down Expand Up @@ -174,7 +174,7 @@ Subsequently, any pod requesting a resource of type `alpha.kubernetes.io/nvidia-
You create a job by defining a TFJob and then creating it with.

```
kubectl create -f https://raw.githubusercontent.com/tensorflow/k8s/master/examples/tf_job.yaml
kubectl create -f https://raw.githubusercontent.com/kubeflow/tf-operator/master/examples/tf_job.yaml
```

In this case the job spec looks like the following
Expand Down Expand Up @@ -280,9 +280,9 @@ for using GPUs.
### Requesting a TensorBoard instance

You can also ask the `TFJob` operator to create a TensorBoard instance
by including a [TensorBoardSpec](https://github.com/tensorflow/k8s/blob/master/pkg/apis/tensorflow/v1alpha1/types.go#L95)
by including a [TensorBoardSpec](https://github.com/kubeflow/tf-operator/blob/master/pkg/apis/tensorflow/v1alpha1/types.go#L95)
in your job. The table below describes the important fields in
[TensorBoardSpec](https://github.com/tensorflow/k8s/blob/master/pkg/apis/tensorflow/v1alpha1/types.go#L95).
[TensorBoardSpec](https://github.com/kubeflow/tf-operator/blob/master/pkg/apis/tensorflow/v1alpha1/types.go#L95).

| Name | Description | Required | Default |
|---|---|---|---|
Expand Down
6 changes: 3 additions & 3 deletions build/images/tf_operator/build_and_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def main(): # pylint: disable=too-many-locals, too-many-statements
go_path = os.environ["GOPATH"]

targets = [
"github.com/tensorflow/k8s/cmd/tf_operator",
"github.com/tensorflow/k8s/test/e2e",
"github.com/tensorflow/k8s/dashboard/backend",
"github.com/kubeflow/tf-operator/cmd/tf_operator",
"github.com/kubeflow/tf-operator/test/e2e",
"github.com/kubeflow/tf-operator/dashboard/backend",
]
for t in targets:
subprocess.check_call(["go", "install", t])
Expand Down
2 changes: 1 addition & 1 deletion build/release/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Releasing

* The script [release.py](https://github.com/tensorflow/k8s/blob/master/py/release.py) will build and push a release
* The script [release.py](https://github.com/kubeflow/tf-operator/blob/master/py/release.py) will build and push a release
based on the latest green postsubmit.

* The script can be run continuously and will periodically check for new
Expand Down
18 changes: 9 additions & 9 deletions cmd/tf_operator/app/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ import (
"k8s.io/client-go/tools/leaderelection/resourcelock"
"k8s.io/client-go/tools/record"

"github.com/tensorflow/k8s/cmd/tf_operator/app/options"
"github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
tfjobclient "github.com/tensorflow/k8s/pkg/client/clientset/versioned"
"github.com/tensorflow/k8s/pkg/client/clientset/versioned/scheme"
informers "github.com/tensorflow/k8s/pkg/client/informers/externalversions"
"github.com/tensorflow/k8s/pkg/controller"
"github.com/tensorflow/k8s/pkg/util"
"github.com/tensorflow/k8s/pkg/util/k8sutil"
"github.com/tensorflow/k8s/version"
"github.com/kubeflow/tf-operator/cmd/tf_operator/app/options"
"github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
tfjobclient "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned"
"github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/scheme"
informers "github.com/kubeflow/tf-operator/pkg/client/informers/externalversions"
"github.com/kubeflow/tf-operator/pkg/controller"
"github.com/kubeflow/tf-operator/pkg/util"
"github.com/kubeflow/tf-operator/pkg/util/k8sutil"
"github.com/kubeflow/tf-operator/version"
)

var (
Expand Down
4 changes: 2 additions & 2 deletions cmd/tf_operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"fmt"
"os"

"github.com/tensorflow/k8s/cmd/tf_operator/app"
"github.com/tensorflow/k8s/cmd/tf_operator/app/options"
"github.com/kubeflow/tf-operator/cmd/tf_operator/app"
"github.com/kubeflow/tf-operator/cmd/tf_operator/app/options"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions dashboard/backend/client/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package client

import (
"github.com/tensorflow/k8s/pkg/client/clientset/versioned"
"github.com/tensorflow/k8s/pkg/util/k8sutil"
"github.com/kubeflow/tf-operator/pkg/client/clientset/versioned"
"github.com/kubeflow/tf-operator/pkg/util/k8sutil"
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/rest"
)
Expand Down
4 changes: 2 additions & 2 deletions dashboard/backend/handler/api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
log "github.com/golang/glog"

"github.com/emicklei/go-restful"
"github.com/tensorflow/k8s/dashboard/backend/client"
"github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
"github.com/kubeflow/tf-operator/dashboard/backend/client"
"github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"

"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
4 changes: 2 additions & 2 deletions dashboard/backend/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"net/http"
"os"

"github.com/tensorflow/k8s/dashboard/backend/client"
"github.com/tensorflow/k8s/dashboard/backend/handler"
"github.com/kubeflow/tf-operator/dashboard/backend/client"
"github.com/kubeflow/tf-operator/dashboard/backend/handler"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion dashboard/frontend/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Frontend code for Kubeflow

[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/tensorflow/k8s)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/kubeflow/tf-operator)

## Editor Setup

Expand Down
2 changes: 1 addition & 1 deletion dashboard/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tensorflowk8s-dashboard",
"version": "0.1.0",
"description": "Dashboard for tensorflow/k8s.",
"description": "Dashboard for kubeflow/tf-operator.",
"private": true,
"dependencies": {
"lodash": "^4.17.4",
Expand Down
2 changes: 1 addition & 1 deletion dashboard/frontend/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>TensorFlow/k8s</title>
<title>kubeflow/tf-operator</title>
</head>
<body>
<noscript>
Expand Down
2 changes: 1 addition & 1 deletion dashboard/frontend/src/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const App = () => {
rel="stylesheet"
/>
<div style={headerStyle}>
<h1 style={brandingStyle}>TensorFlow/k8s</h1>
<h1 style={brandingStyle}>kubeflow/tf-operator</h1>
<FlatButton
label="Create"
primary={true}
Expand Down
8 changes: 4 additions & 4 deletions developer_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ Create a symbolic link inside your GOPATH to the location you checked out the co

```sh
mkdir -p ${GOPATH}/src/github.com/tensorflow
ln -sf ${GIT_TRAINING} ${GOPATH}/src/github.com/tensorflow/k8s
ln -sf ${GIT_TRAINING} ${GOPATH}/src/github.com/kubeflow/tf-operator
```

* GIT_TRAINING should be the location where you checked out https://github.com/tensorflow/k8s
* GIT_TRAINING should be the location where you checked out https://github.com/kubeflow/tf-operator

Resolve dependencies (if you don't have glide install, check how to do it [here](https://github.com/Masterminds/glide/blob/master/README.md#install))

Expand All @@ -101,7 +101,7 @@ glide install -v
Build it

```sh
go install github.com/tensorflow/k8s/cmd/tf_operator
go install github.com/kubeflow/tf-operator/cmd/tf_operator
```

## Building all the artifacts.
Expand Down Expand Up @@ -153,7 +153,7 @@ The first command creates a CRD `tfjobs`. And the second command runs the operat
operator is working, create an example job and you should see jobs created by it.

```sh
kubectl create -f https://raw.githubusercontent.com/tensorflow/k8s/master/examples/tf_job.yaml
kubectl create -f https://raw.githubusercontent.com/kubeflow/tf-operator/master/examples/tf_job.yaml
```

## Go version
Expand Down
10 changes: 5 additions & 5 deletions examples/gke/TF on GKE.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"# TF on GKE\n",
"\n",
"This notebook shows how to run the [TensorFlow CIFAR10 sample](https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10_estimator) on GKE using [TFJobs](https://github.com/tensorflow/k8s)"
"This notebook shows how to run the [TensorFlow CIFAR10 sample](https://github.com/tensorflow/models/tree/master/tutorials/image/cifar10_estimator) on GKE using [TFJobs](https://github.com/kubeflow/tf-operator)"
]
},
{
Expand Down Expand Up @@ -39,8 +39,8 @@
" * You need to map in docker if you want tobuild docker images inside the container.\n",
" * Alternatively, you can set \"use_gcb\" to true in order to build the images using Google Container Builder\n",
" \n",
"Additionally the [py package](https://github.com/tensorflow/k8s/tree/master/py) must be a top level package importable as py\n",
" * If you cloned [tensorflow/k8s](https://github.com/tensorflow/k8s) and are running this notebook in place the path with be configured automatically"
"Additionally the [py package](https://github.com/kubeflow/tf-operator/tree/master/py) must be a top level package importable as py\n",
" * If you cloned [kubeflow/tf-operator](https://github.com/kubeflow/tf-operator) and are running this notebook in place the path with be configured automatically"
]
},
{
Expand Down Expand Up @@ -149,7 +149,7 @@
" from py import build_and_push_image\n",
" from py import util\n",
"except ImportError:\n",
" raise ImportError(\"Please ensure the py package in https://github.com/tensorflow/k8s is a top level package\")\n",
" raise ImportError(\"Please ensure the py package in https://github.com/kubeflow/tf-operator is a top level package\")\n",
"import StringIO\n",
"import subprocess\n",
"import urllib\n",
Expand Down Expand Up @@ -384,7 +384,7 @@
"source": [
"### Install the Operator\n",
"\n",
"* We need to deploy the [TFJob](https://github.com/tensorflow/k8s) custom resource on our K8s cluster\n",
"* We need to deploy the [TFJob](https://github.com/kubeflow/tf-operator) custom resource on our K8s cluster\n",
"* TFJob is deployed using the [helm](https://github.com/kubernetes/helm) package manager so first we need to setup helm on our cluster"
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/gke/notebook_image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017 The tensorflow/k8s Authors.
# Copyright 2017 The Kubeflow Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions glide.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package: github.com/tensorflow/k8s
package: github.com/kubeflow/tf-operator
ignore:
- github.com/tensorflow/k8s
- github.com/kubeflow/tf-operator
import:
- package: k8s.io/client-go
version: v5.0.0
Expand Down
3 changes: 1 addition & 2 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@ CODEGEN_PKG=${CODEGEN_PKG:-$(cd ${SCRIPT_ROOT}; ls -d -1 ./vendor/k8s.io/code-ge
# k8s.io/kubernetes. The output-base is needed for the generators to output into the vendor dir
# instead of the $GOPATH directly. For normal projects this can be dropped.
${CODEGEN_PKG}/generate-groups.sh "defaulter,deepcopy,client,informer,lister" \
github.com/tensorflow/k8s/pkg/client github.com/tensorflow/k8s/pkg/apis \
github.com/kubeflow/tf-operator/pkg/client github.com/kubeflow/tf-operator/pkg/apis \
tensorflow:v1alpha1

4 changes: 2 additions & 2 deletions pkg/apis/tensorflow/helper/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package helper
import (
"fmt"

tfv1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
"github.com/tensorflow/k8s/pkg/util"
tfv1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
"github.com/kubeflow/tf-operator/pkg/util"
"k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/tensorflow/helper/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (
"testing"

"github.com/gogo/protobuf/proto"
tfv1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
"github.com/tensorflow/k8s/pkg/util"
tfv1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
"github.com/kubeflow/tf-operator/pkg/util"
"k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/resource"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/tensorflow/v1alpha1/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"testing"

"github.com/gogo/protobuf/proto"
"github.com/tensorflow/k8s/pkg/util"
"github.com/kubeflow/tf-operator/pkg/util"
"k8s.io/api/core/v1"
)

Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/tensorflow/validation/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"errors"
"fmt"

tfv1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
"github.com/tensorflow/k8s/pkg/util"
tfv1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
"github.com/kubeflow/tf-operator/pkg/util"
)

// ValidateTFJobSpec checks that the TFJobSpec is valid.
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/tensorflow/validation/validation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package validation
import (
"testing"

tfv1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
tfv1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"

"github.com/gogo/protobuf/proto"
"k8s.io/api/core/v1"
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/clientset.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package versioned

import (
glog "github.com/golang/glog"
kubeflowv1alpha1 "github.com/tensorflow/k8s/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
kubeflowv1alpha1 "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
discovery "k8s.io/client-go/discovery"
rest "k8s.io/client-go/rest"
flowcontrol "k8s.io/client-go/util/flowcontrol"
Expand Down
6 changes: 3 additions & 3 deletions pkg/client/clientset/versioned/fake/clientset_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ limitations under the License.
package fake

import (
clientset "github.com/tensorflow/k8s/pkg/client/clientset/versioned"
kubeflowv1alpha1 "github.com/tensorflow/k8s/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
fakekubeflowv1alpha1 "github.com/tensorflow/k8s/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake"
clientset "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned"
kubeflowv1alpha1 "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
fakekubeflowv1alpha1 "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1/fake"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/watch"
"k8s.io/client-go/discovery"
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/fake/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package fake

import (
kubeflowv1alpha1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
kubeflowv1alpha1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
2 changes: 1 addition & 1 deletion pkg/client/clientset/versioned/scheme/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package scheme

import (
kubeflowv1alpha1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
kubeflowv1alpha1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
runtime "k8s.io/apimachinery/pkg/runtime"
schema "k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package fake

import (
v1alpha1 "github.com/tensorflow/k8s/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
v1alpha1 "github.com/kubeflow/tf-operator/pkg/client/clientset/versioned/typed/kubeflow/v1alpha1"
rest "k8s.io/client-go/rest"
testing "k8s.io/client-go/testing"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package fake

import (
v1alpha1 "github.com/tensorflow/k8s/pkg/apis/tensorflow/v1alpha1"
v1alpha1 "github.com/kubeflow/tf-operator/pkg/apis/tensorflow/v1alpha1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
labels "k8s.io/apimachinery/pkg/labels"
schema "k8s.io/apimachinery/pkg/runtime/schema"
Expand Down
Loading

0 comments on commit b0561dd

Please sign in to comment.