Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
1ebe7597
Commit
1ebe7597
authored
Jan 04, 2017
by
deads2k
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
selectively move to client-go packages
parent
5ee52e8b
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
60 additions
and
59 deletions
+60
-59
BUILD
pkg/auth/authorizer/union/BUILD
+9
-9
union.go
pkg/auth/authorizer/union/union.go
+1
-1
BUILD
pkg/ssh/BUILD
+4
-4
ssh.go
pkg/ssh/ssh.go
+3
-3
ssh_test.go
pkg/ssh/ssh_test.go
+1
-1
BUILD
pkg/util/wsstream/BUILD
+1
-0
stream.go
pkg/util/wsstream/stream.go
+1
-1
BUILD
plugin/pkg/auth/authenticator/request/headerrequest/BUILD
+10
-10
requestheader.go
...auth/authenticator/request/headerrequest/requestheader.go
+2
-2
BUILD
plugin/pkg/auth/authenticator/request/union/BUILD
+9
-9
union.go
plugin/pkg/auth/authenticator/request/union/union.go
+1
-1
BUILD
plugin/pkg/auth/authenticator/request/x509/BUILD
+15
-15
x509.go
plugin/pkg/auth/authenticator/request/x509/x509.go
+2
-2
x509_test.go
plugin/pkg/auth/authenticator/request/x509/x509_test.go
+1
-1
No files found.
pkg/auth/authorizer/union/BUILD
View file @
1ebe7597
...
@@ -8,20 +8,20 @@ load(
...
@@ -8,20 +8,20 @@ load(
"go_test",
"go_test",
)
)
go_test(
name = "go_default_test",
srcs = ["union_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//pkg/auth/authorizer:go_default_library"],
)
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = ["union.go"],
srcs = ["union.go"],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/auth/authorizer:go_default_library",
"//pkg/auth/authorizer:go_default_library",
"//
pkg/util/errors:go_default_library
",
"//
vendor:k8s.io/client-go/pkg/util/errors
",
],
],
)
)
go_test(
name = "go_default_test",
srcs = ["union_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//pkg/auth/authorizer:go_default_library"],
)
pkg/auth/authorizer/union/union.go
View file @
1ebe7597
...
@@ -19,8 +19,8 @@ package union
...
@@ -19,8 +19,8 @@ package union
import
(
import
(
"strings"
"strings"
utilerrors
"k8s.io/client-go/pkg/util/errors"
"k8s.io/kubernetes/pkg/auth/authorizer"
"k8s.io/kubernetes/pkg/auth/authorizer"
utilerrors
"k8s.io/kubernetes/pkg/util/errors"
)
)
// unionAuthzHandler authorizer against a chain of authorizer.Authorizer
// unionAuthzHandler authorizer against a chain of authorizer.Authorizer
...
...
pkg/ssh/BUILD
View file @
1ebe7597
...
@@ -13,12 +13,12 @@ go_library(
...
@@ -13,12 +13,12 @@ go_library(
srcs = ["ssh.go"],
srcs = ["ssh.go"],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/util/net:go_default_library",
"//pkg/util/runtime:go_default_library",
"//pkg/util/wait:go_default_library",
"//vendor:github.com/golang/glog",
"//vendor:github.com/golang/glog",
"//vendor:github.com/prometheus/client_golang/prometheus",
"//vendor:github.com/prometheus/client_golang/prometheus",
"//vendor:golang.org/x/crypto/ssh",
"//vendor:golang.org/x/crypto/ssh",
"//vendor:k8s.io/client-go/pkg/util/net",
"//vendor:k8s.io/client-go/pkg/util/runtime",
"//vendor:k8s.io/client-go/pkg/util/wait",
],
],
)
)
...
@@ -28,8 +28,8 @@ go_test(
...
@@ -28,8 +28,8 @@ go_test(
library = ":go_default_library",
library = ":go_default_library",
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/util/wait:go_default_library",
"//vendor:github.com/golang/glog",
"//vendor:github.com/golang/glog",
"//vendor:golang.org/x/crypto/ssh",
"//vendor:golang.org/x/crypto/ssh",
"//vendor:k8s.io/client-go/pkg/util/wait",
],
],
)
)
pkg/ssh/ssh.go
View file @
1ebe7597
...
@@ -40,9 +40,9 @@ import (
...
@@ -40,9 +40,9 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh"
utilnet
"k8s.io/
kubernetes
/pkg/util/net"
utilnet
"k8s.io/
client-go
/pkg/util/net"
"k8s.io/
kubernetes
/pkg/util/runtime"
"k8s.io/
client-go
/pkg/util/runtime"
"k8s.io/
kubernetes
/pkg/util/wait"
"k8s.io/
client-go
/pkg/util/wait"
)
)
var
(
var
(
...
...
pkg/ssh/ssh_test.go
View file @
1ebe7597
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
"testing"
"testing"
"time"
"time"
"k8s.io/
kubernetes
/pkg/util/wait"
"k8s.io/
client-go
/pkg/util/wait"
"github.com/golang/glog"
"github.com/golang/glog"
"golang.org/x/crypto/ssh"
"golang.org/x/crypto/ssh"
...
...
pkg/util/wsstream/BUILD
View file @
1ebe7597
...
@@ -20,6 +20,7 @@ go_library(
...
@@ -20,6 +20,7 @@ go_library(
"//pkg/util/runtime:go_default_library",
"//pkg/util/runtime:go_default_library",
"//vendor:github.com/golang/glog",
"//vendor:github.com/golang/glog",
"//vendor:golang.org/x/net/websocket",
"//vendor:golang.org/x/net/websocket",
"//vendor:k8s.io/client-go/pkg/util/runtime",
],
],
)
)
...
...
pkg/util/wsstream/stream.go
View file @
1ebe7597
...
@@ -25,7 +25,7 @@ import (
...
@@ -25,7 +25,7 @@ import (
"golang.org/x/net/websocket"
"golang.org/x/net/websocket"
"k8s.io/
kubernetes
/pkg/util/runtime"
"k8s.io/
client-go
/pkg/util/runtime"
)
)
// The WebSocket subprotocol "binary.k8s.io" will only send messages to the
// The WebSocket subprotocol "binary.k8s.io" will only send messages to the
...
...
plugin/pkg/auth/authenticator/request/headerrequest/BUILD
View file @
1ebe7597
...
@@ -8,23 +8,23 @@ load(
...
@@ -8,23 +8,23 @@ load(
"go_test",
"go_test",
)
)
go_test(
name = "go_default_test",
srcs = ["requestheader_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"],
)
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = ["requestheader.go"],
srcs = ["requestheader.go"],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/auth/authenticator:go_default_library",
"//pkg/auth/authenticator:go_default_library",
"//pkg/util/cert:go_default_library",
"//pkg/util/sets:go_default_library",
"//plugin/pkg/auth/authenticator/request/x509:go_default_library",
"//plugin/pkg/auth/authenticator/request/x509:go_default_library",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/client-go/pkg/util/cert",
"//vendor:k8s.io/client-go/pkg/util/sets",
],
],
)
)
go_test(
name = "go_default_test",
srcs = ["requestheader_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"],
)
plugin/pkg/auth/authenticator/request/headerrequest/requestheader.go
View file @
1ebe7597
...
@@ -24,9 +24,9 @@ import (
...
@@ -24,9 +24,9 @@ import (
"strings"
"strings"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/authentication/user"
utilcert
"k8s.io/client-go/pkg/util/cert"
"k8s.io/client-go/pkg/util/sets"
"k8s.io/kubernetes/pkg/auth/authenticator"
"k8s.io/kubernetes/pkg/auth/authenticator"
utilcert
"k8s.io/kubernetes/pkg/util/cert"
"k8s.io/kubernetes/pkg/util/sets"
x509request
"k8s.io/kubernetes/plugin/pkg/auth/authenticator/request/x509"
x509request
"k8s.io/kubernetes/plugin/pkg/auth/authenticator/request/x509"
)
)
...
...
plugin/pkg/auth/authenticator/request/union/BUILD
View file @
1ebe7597
...
@@ -8,21 +8,21 @@ load(
...
@@ -8,21 +8,21 @@ load(
"go_test",
"go_test",
)
)
go_test(
name = "go_default_test",
srcs = ["unionauth_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"],
)
go_library(
go_library(
name = "go_default_library",
name = "go_default_library",
srcs = ["union.go"],
srcs = ["union.go"],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/auth/authenticator:go_default_library",
"//pkg/auth/authenticator:go_default_library",
"//pkg/util/errors:go_default_library",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/client-go/pkg/util/errors",
],
],
)
)
go_test(
name = "go_default_test",
srcs = ["unionauth_test.go"],
library = ":go_default_library",
tags = ["automanaged"],
deps = ["//vendor:k8s.io/apiserver/pkg/authentication/user"],
)
plugin/pkg/auth/authenticator/request/union/union.go
View file @
1ebe7597
...
@@ -20,8 +20,8 @@ import (
...
@@ -20,8 +20,8 @@ import (
"net/http"
"net/http"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/authentication/user"
utilerrors
"k8s.io/client-go/pkg/util/errors"
"k8s.io/kubernetes/pkg/auth/authenticator"
"k8s.io/kubernetes/pkg/auth/authenticator"
utilerrors
"k8s.io/kubernetes/pkg/util/errors"
)
)
// unionAuthRequestHandler authenticates requests using a chain of authenticator.Requests
// unionAuthRequestHandler authenticates requests using a chain of authenticator.Requests
...
...
plugin/pkg/auth/authenticator/request/x509/BUILD
View file @
1ebe7597
...
@@ -8,31 +8,31 @@ load(
...
@@ -8,31 +8,31 @@ load(
"go_test",
"go_test",
)
)
go_library(
go_test(
name = "go_default_library",
name = "go_default_test",
srcs = [
srcs = ["x509_test.go"],
"doc.go",
data = glob(["testdata/*"]),
"x509.go",
library = ":go_default_library",
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/auth/authenticator:go_default_library",
"//pkg/auth/authenticator:go_default_library",
"//pkg/util/errors:go_default_library",
"//pkg/util/sets:go_default_library",
"//vendor:github.com/golang/glog",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/client-go/pkg/util/sets",
],
],
)
)
go_test(
go_library(
name = "go_default_test",
name = "go_default_library",
srcs = ["x509_test.go"],
srcs = [
data = glob(["testdata/*"]),
"doc.go",
library = ":go_default_library",
"x509.go",
],
tags = ["automanaged"],
tags = ["automanaged"],
deps = [
deps = [
"//pkg/auth/authenticator:go_default_library",
"//pkg/auth/authenticator:go_default_library",
"//
pkg/util/sets:go_default_library
",
"//
vendor:github.com/golang/glog
",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/apiserver/pkg/authentication/user",
"//vendor:k8s.io/client-go/pkg/util/errors",
"//vendor:k8s.io/client-go/pkg/util/sets",
],
],
)
)
plugin/pkg/auth/authenticator/request/x509/x509.go
View file @
1ebe7597
...
@@ -26,9 +26,9 @@ import (
...
@@ -26,9 +26,9 @@ import (
"github.com/golang/glog"
"github.com/golang/glog"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/authentication/user"
utilerrors
"k8s.io/client-go/pkg/util/errors"
"k8s.io/client-go/pkg/util/sets"
"k8s.io/kubernetes/pkg/auth/authenticator"
"k8s.io/kubernetes/pkg/auth/authenticator"
utilerrors
"k8s.io/kubernetes/pkg/util/errors"
"k8s.io/kubernetes/pkg/util/sets"
)
)
// UserConversion defines an interface for extracting user info from a client certificate chain
// UserConversion defines an interface for extracting user info from a client certificate chain
...
...
plugin/pkg/auth/authenticator/request/x509/x509_test.go
View file @
1ebe7597
...
@@ -29,8 +29,8 @@ import (
...
@@ -29,8 +29,8 @@ import (
"time"
"time"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/apiserver/pkg/authentication/user"
"k8s.io/client-go/pkg/util/sets"
"k8s.io/kubernetes/pkg/auth/authenticator"
"k8s.io/kubernetes/pkg/auth/authenticator"
"k8s.io/kubernetes/pkg/util/sets"
)
)
const
(
const
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment