mirror of https://github.com/k3s-io/k3s
Merge pull request #12604 from krousey/clientauth
Moving clientauth package to be under clientpull/6/head
commit
811b93ef2f
|
@ -35,11 +35,11 @@ import (
|
|||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/capabilities"
|
||||
"k8s.io/kubernetes/pkg/client"
|
||||
clientauth "k8s.io/kubernetes/pkg/client/auth"
|
||||
"k8s.io/kubernetes/pkg/client/chaosclient"
|
||||
"k8s.io/kubernetes/pkg/client/clientcmd"
|
||||
clientcmdapi "k8s.io/kubernetes/pkg/client/clientcmd/api"
|
||||
"k8s.io/kubernetes/pkg/client/record"
|
||||
"k8s.io/kubernetes/pkg/clientauth"
|
||||
"k8s.io/kubernetes/pkg/credentialprovider"
|
||||
"k8s.io/kubernetes/pkg/healthz"
|
||||
"k8s.io/kubernetes/pkg/kubelet"
|
||||
|
|
|
@ -62,7 +62,7 @@ import (
|
|||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/resource"
|
||||
"k8s.io/kubernetes/pkg/client"
|
||||
"k8s.io/kubernetes/pkg/clientauth"
|
||||
clientauth "k8s.io/kubernetes/pkg/client/auth"
|
||||
"k8s.io/kubernetes/pkg/master/ports"
|
||||
etcdstorage "k8s.io/kubernetes/pkg/storage/etcd"
|
||||
"k8s.io/kubernetes/pkg/tools"
|
||||
|
|
|
@ -15,7 +15,7 @@ limitations under the License.
|
|||
*/
|
||||
|
||||
/*
|
||||
Package authcfg defines a file format for holding authentication
|
||||
Package auth defines a file format for holding authentication
|
||||
information needed by clients of Kubernetes. Typically,
|
||||
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
|
||||
|
@ -47,10 +47,10 @@ Example:
|
|||
|
||||
import (
|
||||
"pkg/client"
|
||||
"pkg/clientauth"
|
||||
"pkg/client/auth"
|
||||
)
|
||||
|
||||
info, err := clientauth.LoadFromFile(filename)
|
||||
info, err := auth.LoadFromFile(filename)
|
||||
if err != nil {
|
||||
// handle error
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ Example:
|
|||
client := client.New(clientConfig)
|
||||
client.Pods(ns).List()
|
||||
*/
|
||||
package clientauth
|
||||
package auth
|
||||
|
||||
// TODO: need a way to rotate Tokens. Therefore, need a way for client object to be reset when the authcfg is updated.
|
||||
import (
|
|
@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|||
limitations under the License.
|
||||
*/
|
||||
|
||||
package clientauth_test
|
||||
package auth_test
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
|
@ -22,7 +22,7 @@ import (
|
|||
"reflect"
|
||||
"testing"
|
||||
|
||||
"k8s.io/kubernetes/pkg/clientauth"
|
||||
clientauth "k8s.io/kubernetes/pkg/client/auth"
|
||||
)
|
||||
|
||||
func TestLoadFromFile(t *testing.T) {
|
|
@ -23,7 +23,7 @@ import (
|
|||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
"k8s.io/kubernetes/pkg/clientauth"
|
||||
clientauth "k8s.io/kubernetes/pkg/client/auth"
|
||||
)
|
||||
|
||||
// AuthLoaders are used to build clientauth.Info objects.
|
||||
|
|
|
@ -26,8 +26,8 @@ import (
|
|||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/client"
|
||||
clientauth "k8s.io/kubernetes/pkg/client/auth"
|
||||
clientcmdapi "k8s.io/kubernetes/pkg/client/clientcmd/api"
|
||||
"k8s.io/kubernetes/pkg/clientauth"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue