expose user info to admission controllers

This commit is contained in:
Paul Weil
2015-05-13 21:31:51 -04:00
parent fe24da8478
commit aaeb1dad93
9 changed files with 61 additions and 48 deletions

View File

@@ -17,6 +17,7 @@ limitations under the License.
package admission
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/auth/user"
"github.com/GoogleCloudPlatform/kubernetes/pkg/runtime"
)
@@ -28,6 +29,7 @@ type Attributes interface {
GetOperation() string
GetObject() runtime.Object
GetKind() string
GetUserInfo() user.Info
}
// Interface is an abstract, pluggable interface for Admission Control decisions.