Documentation ¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
- Variables
- type ClusterResourceOverrideConfig
- func (in *ClusterResourceOverrideConfig) DeepCopy() *ClusterResourceOverrideConfig
- func (in *ClusterResourceOverrideConfig) DeepCopyInto(out *ClusterResourceOverrideConfig)
- func (in *ClusterResourceOverrideConfig) DeepCopyObject() runtime.Object
- func (obj *ClusterResourceOverrideConfig) GetObjectKind() schema.ObjectKind
- func (ClusterResourceOverrideConfig) SwaggerDoc() map[string]string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder( addKnownTypes, clusterresourceoverride.InstallLegacy, ) InstallLegacy = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "", Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
This section is empty.
Types ¶
type ClusterResourceOverrideConfig ¶
type ClusterResourceOverrideConfig struct { metav1.TypeMeta `json:",inline"` // 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 `json:"limitCPUToMemoryPercent"` // CPURequestToLimitPercent (if > 0) overrides CPU request to a percentage of CPU limit CPURequestToLimitPercent int64 `json:"cpuRequestToLimitPercent"` // MemoryRequestToLimitPercent (if > 0) overrides memory request to a percentage of memory limit MemoryRequestToLimitPercent int64 `json:"memoryRequestToLimitPercent"` }
ClusterResourceOverrideConfig is the configuration for the ClusterResourceOverride admission controller which overrides user-provided container request/limit values.
func (*ClusterResourceOverrideConfig) DeepCopy ¶
func (in *ClusterResourceOverrideConfig) DeepCopy() *ClusterResourceOverrideConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterResourceOverrideConfig.
func (*ClusterResourceOverrideConfig) DeepCopyInto ¶
func (in *ClusterResourceOverrideConfig) DeepCopyInto(out *ClusterResourceOverrideConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterResourceOverrideConfig) DeepCopyObject ¶
func (in *ClusterResourceOverrideConfig) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterResourceOverrideConfig) GetObjectKind ¶
func (obj *ClusterResourceOverrideConfig) GetObjectKind() schema.ObjectKind
func (ClusterResourceOverrideConfig) SwaggerDoc ¶
func (ClusterResourceOverrideConfig) SwaggerDoc() map[string]string
Click to show internal directories.
Click to hide internal directories.