mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +00:00
move pkg/auth/user to staging
This commit is contained in:
parent
38d57e5a71
commit
442d2c1404
@ -41,6 +41,9 @@ pushd "${KUBE_ROOT}" > /dev/null
|
|||||||
if [ ! -e "vendor/k8s.io/client-go" ]; then
|
if [ ! -e "vendor/k8s.io/client-go" ]; then
|
||||||
ln -s ../../staging/src/k8s.io/client-go vendor/k8s.io/client-go
|
ln -s ../../staging/src/k8s.io/client-go vendor/k8s.io/client-go
|
||||||
fi
|
fi
|
||||||
|
if [ ! -e "vendor/k8s.io/apiserver" ]; then
|
||||||
|
ln -s ../../staging/src/k8s.io/apiserver vendor/k8s.io/apiserver
|
||||||
|
fi
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
||||||
echo "Don't forget to run hack/update-godep-licenses.sh if you added or removed a dependency!"
|
echo "Don't forget to run hack/update-godep-licenses.sh if you added or removed a dependency!"
|
||||||
|
@ -53,6 +53,7 @@ kube::test::find_dirs() {
|
|||||||
find -L . \
|
find -L . \
|
||||||
-path './_output' -prune \
|
-path './_output' -prune \
|
||||||
-o -path './vendor/k8s.io/client-go/*' \
|
-o -path './vendor/k8s.io/client-go/*' \
|
||||||
|
-o -path './vendor/k8s.io/apiserver/*' \
|
||||||
-o -path './test/e2e_node/system/*' \
|
-o -path './test/e2e_node/system/*' \
|
||||||
-name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./||' | LC_ALL=C sort -u
|
-name '*_test.go' -print0 | xargs -0n1 dirname | sed 's|^\./||' | LC_ALL=C sort -u
|
||||||
)
|
)
|
||||||
|
@ -9,9 +9,6 @@ load(
|
|||||||
|
|
||||||
go_library(
|
go_library(
|
||||||
name = "go_default_library",
|
name = "go_default_library",
|
||||||
srcs = [
|
srcs = ["doc.go"],
|
||||||
"doc.go",
|
|
||||||
"user.go",
|
|
||||||
],
|
|
||||||
tags = ["automanaged"],
|
tags = ["automanaged"],
|
||||||
)
|
)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2014 The Kubernetes Authors.
|
Copyright 2016 The Kubernetes Authors.
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
you may not use this file except in compliance with the License.
|
you may not use this file except in compliance with the License.
|
||||||
@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
|
|||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Package user contains utilities for dealing with simple user exchange in the auth
|
// TODO genericapiserver remove this empty package. Godep fails without this because heapster relies
|
||||||
// packages. The user.Info interface defines an interface for exchanging that info.
|
// on this package. This will allow us to start splitting packages, but will force
|
||||||
package user // import "k8s.io/kubernetes/pkg/auth/user"
|
// heapster to update on their next kube rebase.
|
||||||
|
package user
|
||||||
|
10
staging/src/k8s.io/apiserver/.import-restrictions
Normal file
10
staging/src/k8s.io/apiserver/.import-restrictions
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"Rules": [
|
||||||
|
{
|
||||||
|
"SelectorRegexp": "k8s[.]io/kubernetes",
|
||||||
|
"ForbiddenPrefixes": [
|
||||||
|
""
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
19
staging/src/k8s.io/apiserver/pkg/authentication/user/doc.go
Normal file
19
staging/src/k8s.io/apiserver/pkg/authentication/user/doc.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2014 The Kubernetes Authors.
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Package user contains utilities for dealing with simple user exchange in the auth
|
||||||
|
// packages. The user.Info interface defines an interface for exchanging that info.
|
||||||
|
package user
|
1
vendor/k8s.io/apiserver
generated
vendored
Symbolic link
1
vendor/k8s.io/apiserver
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../staging/src/k8s.io/apiserver
|
Loading…
Reference in New Issue
Block a user