Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func Kind(kind string) unversioned.GroupKind
 - func NewProjectRequestLimit(config *ProjectRequestLimitConfig) (admission.Interface, error)
 - func Resource(resource string) unversioned.GroupResource
 - func ValidateProjectLimitBySelector(limit ProjectLimitBySelector, path *field.Path) field.ErrorList
 - func ValidateProjectRequestLimitConfig(config *ProjectRequestLimitConfig) field.ErrorList
 - type ProjectLimitBySelector
 - type ProjectRequestLimitConfig
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: ""}
    SchemeGroupVersion is group version used to register these objects
Functions ¶
func Kind ¶
func Kind(kind string) unversioned.GroupKind
Kind takes an unqualified kind and returns back a Group qualified GroupKind
func NewProjectRequestLimit ¶
func NewProjectRequestLimit(config *ProjectRequestLimitConfig) (admission.Interface, error)
func Resource ¶
func Resource(resource string) unversioned.GroupResource
Resource takes an unqualified resource and returns back a Group qualified GroupResource
func ValidateProjectLimitBySelector ¶
func ValidateProjectLimitBySelector(limit ProjectLimitBySelector, path *field.Path) field.ErrorList
func ValidateProjectRequestLimitConfig ¶
func ValidateProjectRequestLimitConfig(config *ProjectRequestLimitConfig) field.ErrorList
Types ¶
type ProjectLimitBySelector ¶
type ProjectLimitBySelector struct {
	// Selector is a user label selector. An empty selector selects everything.
	Selector map[string]string
	// MaxProjects is the number of projects allowed for this class of users. If MaxProjects is nil,
	// there is no limit to the number of projects users can request. An unlimited number of projects
	// is useful in the case a limit is specified as the default for all users and only users with a
	// specific set of labels should be allowed unlimited project creation.
	MaxProjects *int
}
    ProjectLimitBySelector specifies the maximum number of projects allowed for a given user label selector
type ProjectRequestLimitConfig ¶
type ProjectRequestLimitConfig struct {
	unversioned.TypeMeta
	Limits []ProjectLimitBySelector
}
    ProjectRequestLimitConfig is the configuration for the project request limit plug-in It contains an ordered list of limits based on user label selectors. Selectors will be checked in order and the first one that applies will be used as the limit.
func (*ProjectRequestLimitConfig) IsAnAPIObject ¶
func (*ProjectRequestLimitConfig) IsAnAPIObject()
      
      Source Files
      ¶
    
- admission.go
 - register.go
 - types.go
 - validation.go
 
 Click to show internal directories. 
   Click to hide internal directories.