 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Overview ¶
Package api is the internal version of the API.
Index ¶
Constants ¶
      View Source
      
  
    const ConfigKind = "ClusterResourceOverrideConfig"
    
      View Source
      
  
const PluginName = "ClusterResourceOverride"
    Variables ¶
      View Source
      
  
    var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
      View Source
      
  
var SchemeGroupVersion = unversioned.GroupVersion{Group: "", Version: runtime.APIVersionInternal}
    Functions ¶
This section is empty.
Types ¶
type ClusterResourceOverrideConfig ¶
type ClusterResourceOverrideConfig struct {
	unversioned.TypeMeta
	// For each of the following, if a non-zero ratio is specified then the initial
	// value (if any) in the pod spec is overwritten according to the ratio.
	// LimitRange defaults are merged prior to the override.
	//
	// LimitCPUToMemoryPercent (if > 0) overrides the CPU limit to a ratio of the memory limit;
	// 100% overrides CPU to 1 core per 1GiB of RAM. This is done before overriding the CPU request.
	LimitCPUToMemoryPercent int64
	// CPURequestToLimitPercent (if > 0) overrides CPU request to a percentage of CPU limit
	CPURequestToLimitPercent int64
	// MemoryRequestToLimitPercent (if > 0) overrides memory request to a percentage of memory limit
	MemoryRequestToLimitPercent int64
}
    ClusterResourceOverrideConfig is the configuration for the ClusterResourceOverride admission controller which overrides user-provided container request/limit values.
func (*ClusterResourceOverrideConfig) GetObjectKind ¶
func (obj *ClusterResourceOverrideConfig) GetObjectKind() unversioned.ObjectKind
       Source Files
      ¶
      Source Files
      ¶
    
- doc.go
- name.go
- register.go
- types.go
 Click to show internal directories. 
   Click to hide internal directories.