Skip to content

Commit

Permalink
Merge pull request kubernetes#28204 from thockin/cleanup-third_party
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

Cleanup third party (pt 2)

Move forked-and-hacked golang code to the forked/ directory.  Remove ast/build/parse code that is now in stdlib.  Remove unused shell2junit
  • Loading branch information
k8s-merge-robot authored Jul 7, 2016
2 parents 8601530 + 8c42c08 commit 4da14c8
Show file tree
Hide file tree
Showing 191 changed files with 19 additions and 45,391 deletions.
3 changes: 1 addition & 2 deletions cmd/libs/go2idl/go-to-protobuf/protobuf/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ package protobuf

import (
"fmt"
"go/ast"
"log"
"os"
"path/filepath"
"reflect"
"strings"

"k8s.io/kubernetes/third_party/golang/go/ast"

"k8s.io/kubernetes/cmd/libs/go2idl/generator"
"k8s.io/kubernetes/cmd/libs/go2idl/types"
)
Expand Down
10 changes: 5 additions & 5 deletions cmd/libs/go2idl/go-to-protobuf/protobuf/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ import (
"bytes"
"errors"
"fmt"
"go/ast"
"go/format"
"go/parser"
"go/printer"
"go/token"
"io/ioutil"
"os"
"reflect"
"strings"

"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/printer"
"k8s.io/kubernetes/third_party/golang/go/token"
customreflect "k8s.io/kubernetes/third_party/golang/reflect"
customreflect "k8s.io/kubernetes/third_party/forked/golang/reflect"
)

func rewriteFile(name string, header []byte, rewriteFn func(*token.FileSet, *ast.File) error) error {
Expand Down
13 changes: 6 additions & 7 deletions cmd/libs/go2idl/parser/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@ package parser

import (
"fmt"
"go/ast"
"go/build"
"go/parser"
"go/token"
tc "go/types"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
"strings"

"k8s.io/kubernetes/cmd/libs/go2idl/types"
"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/build"
"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/token"
tc "k8s.io/kubernetes/third_party/golang/go/types"

"github.com/golang/glog"
"k8s.io/kubernetes/cmd/libs/go2idl/types"
)

// Builder lets you add all the go files in all the packages that you care
Expand Down
2 changes: 1 addition & 1 deletion pkg/conversion/deep_equal.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ limitations under the License.
package conversion

import (
"k8s.io/kubernetes/third_party/forked/reflect"
"k8s.io/kubernetes/third_party/forked/golang/reflect"
)

// The code for this type must be located in third_party, since it forks from
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubelet/container/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"k8s.io/kubernetes/pkg/runtime"
"k8s.io/kubernetes/pkg/types"
hashutil "k8s.io/kubernetes/pkg/util/hash"
"k8s.io/kubernetes/third_party/golang/expansion"
"k8s.io/kubernetes/third_party/forked/golang/expansion"

"github.com/golang/glog"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubelet/kubelet.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import (
"k8s.io/kubernetes/pkg/watch"
"k8s.io/kubernetes/plugin/pkg/scheduler/algorithm/predicates"
"k8s.io/kubernetes/plugin/pkg/scheduler/schedulercache"
"k8s.io/kubernetes/third_party/golang/expansion"
"k8s.io/kubernetes/third_party/forked/golang/expansion"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/httpstream/spdy/roundtripper.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import (
apierrors "k8s.io/kubernetes/pkg/api/errors"
"k8s.io/kubernetes/pkg/api/unversioned"
"k8s.io/kubernetes/pkg/util/httpstream"
"k8s.io/kubernetes/third_party/golang/netutil"
"k8s.io/kubernetes/third_party/forked/golang/netutil"
)

// SpdyRoundTripper knows how to upgrade an HTTP request to one that supports
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/jsonpath/jsonpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"reflect"
"strings"

"k8s.io/kubernetes/third_party/golang/template"
"k8s.io/kubernetes/third_party/forked/golang/template"
)

type JSONPath struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/proxy/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/golang/glog"

utilnet "k8s.io/kubernetes/pkg/util/net"
"k8s.io/kubernetes/third_party/golang/netutil"
"k8s.io/kubernetes/third_party/forked/golang/netutil"
)

func DialURL(url *url.URL, transport http.RoundTripper) (net.Conn, error) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/strategicpatch/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"sort"

"k8s.io/kubernetes/pkg/util/json"
forkedjson "k8s.io/kubernetes/third_party/forked/json"
forkedjson "k8s.io/kubernetes/third_party/forked/golang/json"

"github.com/davecgh/go-spew/spew"
"github.com/ghodss/yaml"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions third_party/forked/reflect/LICENSE

This file was deleted.

27 changes: 0 additions & 27 deletions third_party/golang/LICENSE

This file was deleted.

15 changes: 0 additions & 15 deletions third_party/golang/go/README.md

This file was deleted.

Loading

0 comments on commit 4da14c8

Please sign in to comment.