Documentation ¶
Index ¶
- Constants
- func Add(mgr ctrl.Manager) error
- func DecorateResourceByResourceRatio(profile *v1alpha1.ElasticQuotaProfile, total corev1.ResourceList)
- func GetNodeAllocatable(node corev1.Node) corev1.ResourceList
- func MultiplyQuantity(value resource.Quantity, resName corev1.ResourceName, ratio float64) resource.Quantity
- type QuotaProfileReconciler
Constants ¶
View Source
const ( ReasonCreateQuotaFailed = "CreateQuotaFailed" ReasonUpdateQuotaFailed = "UpdateQuotaFailed" )
View Source
const Name = "quotaprofile"
Variables ¶
This section is empty.
Functions ¶
func DecorateResourceByResourceRatio ¶
func DecorateResourceByResourceRatio(profile *v1alpha1.ElasticQuotaProfile, total corev1.ResourceList)
func GetNodeAllocatable ¶
func GetNodeAllocatable(node corev1.Node) corev1.ResourceList
func MultiplyQuantity ¶
Types ¶
type QuotaProfileReconciler ¶
type QuotaProfileReconciler struct { client.Client Scheme *runtime.Scheme Recorder record.EventRecorder }
QuotaProfileReconciler reconciles a QuotaProfile object
func (*QuotaProfileReconciler) SetupWithManager ¶
func (r *QuotaProfileReconciler) SetupWithManager(mgr ctrl.Manager) error
Click to show internal directories.
Click to hide internal directories.