Documentation ¶
Index ¶
- Constants
- Variables
- func Convert_shootresourcereservation_Configuration_To_v1alpha1_Configuration(in *shootresourcereservation.Configuration, out *Configuration, ...) error
- func Convert_v1alpha1_Configuration_To_shootresourcereservation_Configuration(in *Configuration, out *shootresourcereservation.Configuration, ...) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_Configuration(obj *Configuration)
- func SetObjectDefaults_Configuration(in *Configuration)
- type Configuration
Constants ¶
const GroupName = "shootresourcereservation.admission.gardener.cloud"
GroupName is the group name used in this package.
Variables ¶
var ( // SchemeBuilder used to register the Shoot resource. SchemeBuilder runtime.SchemeBuilder // AddToScheme is a pointer to SchemeBuilder.AddToScheme. AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Convert_shootresourcereservation_Configuration_To_v1alpha1_Configuration ¶
func Convert_shootresourcereservation_Configuration_To_v1alpha1_Configuration(in *shootresourcereservation.Configuration, out *Configuration, s conversion.Scope) error
Convert_shootresourcereservation_Configuration_To_v1alpha1_Configuration is an autogenerated conversion function.
func Convert_v1alpha1_Configuration_To_shootresourcereservation_Configuration ¶
func Convert_v1alpha1_Configuration_To_shootresourcereservation_Configuration(in *Configuration, out *shootresourcereservation.Configuration, s conversion.Scope) error
Convert_v1alpha1_Configuration_To_shootresourcereservation_Configuration is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
func SetDefaults_Configuration ¶ added in v1.107.0
func SetDefaults_Configuration(obj *Configuration)
SetDefaults_Configuration sets default values for the Configuration object.
func SetObjectDefaults_Configuration ¶ added in v1.107.0
func SetObjectDefaults_Configuration(in *Configuration)
Types ¶
type Configuration ¶
type Configuration struct { metav1.TypeMeta // UseGKEFormula enables the calculation of resource reservations based on // the CPU and memory resources available for a machine type. UseGKEFormula bool `json:"useGKEFormula"` // Selector optionally defines a label selector for which the GKE formula should be applied. // Defaults to empty LabelSelector, which matches everything. // +optional Selector *metav1.LabelSelector `json:"selector,omitempty"` }
Configuration provides configuration for the ShootResourceReservation admission controller.
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.