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
811b93ef
Commit
811b93ef
authored
Aug 12, 2015
by
CJ Cullen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12604 from krousey/clientauth
Moving clientauth package to be under client
parents
82a1ac49
2a17dbff
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
server.go
cmd/kubelet/app/server.go
+1
-1
service.go
contrib/mesos/pkg/scheduler/service/service.go
+1
-1
clientauth.go
pkg/client/auth/clientauth.go
+4
-4
clientauth_test.go
pkg/client/auth/clientauth_test.go
+2
-2
auth_loaders.go
pkg/client/clientcmd/auth_loaders.go
+1
-1
client_config.go
pkg/client/clientcmd/client_config.go
+1
-1
No files found.
cmd/kubelet/app/server.go
View file @
811b93ef
...
@@ -35,11 +35,11 @@ import (
...
@@ -35,11 +35,11 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/capabilities"
"k8s.io/kubernetes/pkg/capabilities"
"k8s.io/kubernetes/pkg/client"
"k8s.io/kubernetes/pkg/client"
clientauth
"k8s.io/kubernetes/pkg/client/auth"
"k8s.io/kubernetes/pkg/client/chaosclient"
"k8s.io/kubernetes/pkg/client/chaosclient"
"k8s.io/kubernetes/pkg/client/clientcmd"
"k8s.io/kubernetes/pkg/client/clientcmd"
clientcmdapi
"k8s.io/kubernetes/pkg/client/clientcmd/api"
clientcmdapi
"k8s.io/kubernetes/pkg/client/clientcmd/api"
"k8s.io/kubernetes/pkg/client/record"
"k8s.io/kubernetes/pkg/client/record"
"k8s.io/kubernetes/pkg/clientauth"
"k8s.io/kubernetes/pkg/credentialprovider"
"k8s.io/kubernetes/pkg/credentialprovider"
"k8s.io/kubernetes/pkg/healthz"
"k8s.io/kubernetes/pkg/healthz"
"k8s.io/kubernetes/pkg/kubelet"
"k8s.io/kubernetes/pkg/kubelet"
...
...
contrib/mesos/pkg/scheduler/service/service.go
View file @
811b93ef
...
@@ -62,7 +62,7 @@ import (
...
@@ -62,7 +62,7 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/api/resource"
"k8s.io/kubernetes/pkg/client"
"k8s.io/kubernetes/pkg/client"
"k8s.io/kubernetes/pkg/client
auth"
clientauth
"k8s.io/kubernetes/pkg/client/
auth"
"k8s.io/kubernetes/pkg/master/ports"
"k8s.io/kubernetes/pkg/master/ports"
etcdstorage
"k8s.io/kubernetes/pkg/storage/etcd"
etcdstorage
"k8s.io/kubernetes/pkg/storage/etcd"
"k8s.io/kubernetes/pkg/tools"
"k8s.io/kubernetes/pkg/tools"
...
...
pkg/clientauth/clientauth.go
→
pkg/client
/
auth/clientauth.go
View file @
811b93ef
...
@@ -15,7 +15,7 @@ limitations under the License.
...
@@ -15,7 +15,7 @@ limitations under the License.
*/
*/
/*
/*
Package auth
cfg
defines a file format for holding authentication
Package auth defines a file format for holding authentication
information needed by clients of Kubernetes. Typically,
information needed by clients of Kubernetes. Typically,
a Kubernetes cluster will put auth info for the admin in a known
a Kubernetes cluster will put auth info for the admin in a known
location when it is created, and will (soon) put it in a known
location when it is created, and will (soon) put it in a known
...
@@ -47,10 +47,10 @@ Example:
...
@@ -47,10 +47,10 @@ Example:
import (
import (
"pkg/client"
"pkg/client"
"pkg/clientauth"
"pkg/client
/
auth"
)
)
info, err :=
client
auth.LoadFromFile(filename)
info, err := auth.LoadFromFile(filename)
if err != nil {
if err != nil {
// handle error
// handle error
}
}
...
@@ -60,7 +60,7 @@ Example:
...
@@ -60,7 +60,7 @@ Example:
client := client.New(clientConfig)
client := client.New(clientConfig)
client.Pods(ns).List()
client.Pods(ns).List()
*/
*/
package
client
auth
package
auth
// TODO: need a way to rotate Tokens. Therefore, need a way for client object to be reset when the authcfg is updated.
// TODO: need a way to rotate Tokens. Therefore, need a way for client object to be reset when the authcfg is updated.
import
(
import
(
...
...
pkg/clientauth/clientauth_test.go
→
pkg/client
/
auth/clientauth_test.go
View file @
811b93ef
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
...
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
*/
*/
package
client
auth_test
package
auth_test
import
(
import
(
"io/ioutil"
"io/ioutil"
...
@@ -22,7 +22,7 @@ import (
...
@@ -22,7 +22,7 @@ import (
"reflect"
"reflect"
"testing"
"testing"
"k8s.io/kubernetes/pkg/client
auth"
clientauth
"k8s.io/kubernetes/pkg/client/
auth"
)
)
func
TestLoadFromFile
(
t
*
testing
.
T
)
{
func
TestLoadFromFile
(
t
*
testing
.
T
)
{
...
...
pkg/client/clientcmd/auth_loaders.go
View file @
811b93ef
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
"io/ioutil"
"io/ioutil"
"os"
"os"
"k8s.io/kubernetes/pkg/client
auth"
clientauth
"k8s.io/kubernetes/pkg/client/
auth"
)
)
// AuthLoaders are used to build clientauth.Info objects.
// AuthLoaders are used to build clientauth.Info objects.
...
...
pkg/client/clientcmd/client_config.go
View file @
811b93ef
...
@@ -26,8 +26,8 @@ import (
...
@@ -26,8 +26,8 @@ import (
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client"
"k8s.io/kubernetes/pkg/client"
clientauth
"k8s.io/kubernetes/pkg/client/auth"
clientcmdapi
"k8s.io/kubernetes/pkg/client/clientcmd/api"
clientcmdapi
"k8s.io/kubernetes/pkg/client/clientcmd/api"
"k8s.io/kubernetes/pkg/clientauth"
)
)
var
(
var
(
...
...
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