Documentation ¶
Index ¶
- func GetResourceName(infra *infrav1.Infra, seqID int64) string
- type InfraData
- type InfraReconciler
- type InfraReconcilerOptions
- type InfraResourceReconciler
- func (r *InfraResourceReconciler) CreateOrUpdateExtensionResourcesPrice(ctx context.Context, obj client.Object) error
- func (r *InfraResourceReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *InfraResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *InfraResourceReconciler) UpdateResourceUsed(ctx context.Context, obj client.Object) error
- type VolumeData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InfraData ¶
type InfraData struct { Flavor string Volume []VolumeData Count int }
type InfraReconciler ¶
type InfraReconciler struct { client.Client Scheme *runtime.Scheme // contains filtered or unexported fields }
InfraReconciler reconciles a Infra object
func (*InfraReconciler) DeleteInfra ¶
func (*InfraReconciler) Reconcile ¶
Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the Infra object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.
For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.1/pkg/reconcile
func (*InfraReconciler) SetupWithManager ¶
func (r *InfraReconciler) SetupWithManager(mgr ctrl.Manager, opts InfraReconcilerOptions) error
SetupWithManager sets up the controller with the Manager.
type InfraReconcilerOptions ¶
type InfraReconcilerOptions struct {
MaxConcurrentReconciles int
}
type InfraResourceReconciler ¶
InfraResourceReconciler reconciles a InfraResource object
func (*InfraResourceReconciler) CreateOrUpdateExtensionResourcesPrice ¶
func (r *InfraResourceReconciler) CreateOrUpdateExtensionResourcesPrice(ctx context.Context, obj client.Object) error
CreateOrUpdateExtensionResourcesPrice need to create a ExtensionResourcesPrice to make metering-quota know this resource
func (*InfraResourceReconciler) SetupWithManager ¶
func (r *InfraResourceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
func (*InfraResourceReconciler) UpdateResourceUsed ¶
UpdateResourceUsed generate a resourceUsed per infra per interval